CVE-2016-2338

An exploitable heap overflow vulnerability exists in the Psych::Emitter start_document function of Ruby. In Psych::Emitter start_document function heap buffer "head" allocation is made based on tags array length. Specially constructed object passed as element of tags array can increase this array size after mentioned allocation and cause heap overflow.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 90%
Affected Products (NVD)
VendorProductVersion
ruby-langruby
2.2.2
ruby-langruby
2.3.0
debiandebian_linux
8.0
𝑥
= Vulnerable software versions
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
ruby-psych
bionic
not-affected
eoan
not-affected
trusty
dne
xenial
dne
ruby1.9.1
bionic
dne
eoan
dne
trusty
dne
xenial
dne
ruby2.0
bionic
dne
eoan
dne
trusty
dne
xenial
dne
ruby2.3
bionic
dne
eoan
dne
trusty
dne
xenial
not-affected
ruby2.5
bionic
not-affected
eoan
not-affected
trusty
dne
xenial
dne
ruby2.7
bionic
dne
eoan
dne
trusty
dne
xenial
dne
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
ruby
Amazon Linux 2
0:2.0.0.648-36.amzn2.0.17
fixed
ruby-debuginfo
Amazon Linux 2
0:2.0.0.648-36.amzn2.0.17
fixed
ruby-devel
Amazon Linux 2
0:2.0.0.648-36.amzn2.0.17
fixed
ruby-doc
Amazon Linux 2
0:2.0.0.648-36.amzn2.0.17
fixed
ruby-irb
Amazon Linux 2
0:2.0.0.648-36.amzn2.0.17
fixed
ruby-libs
Amazon Linux 2
0:2.0.0.648-36.amzn2.0.17
fixed
ruby-tcltk
Amazon Linux 2
0:2.0.0.648-36.amzn2.0.17
fixed
rubygem-bigdecimal
Amazon Linux 2
0:1.2.0-36.amzn2.0.17
fixed
rubygem-io-console
Amazon Linux 2
0:0.4.2-36.amzn2.0.17
fixed
rubygem-json
Amazon Linux 2
0:1.7.7-36.amzn2.0.17
fixed
rubygem-minitest
Amazon Linux 2
0:4.3.2-36.amzn2.0.17
fixed
rubygem-psych
Amazon Linux 2
0:2.0.0-36.amzn2.0.17
fixed
rubygem-rake
Amazon Linux 2
0:0.9.6-36.amzn2.0.17
fixed
rubygem-rdoc
Amazon Linux 2
0:4.0.0-36.amzn2.0.17
fixed
rubygems
Amazon Linux 2
0:2.0.14.1-36.amzn2.0.17
fixed
rubygems-devel
Amazon Linux 2
0:2.0.14.1-36.amzn2.0.17
fixed