VDB

CVE-2016-2338

CVE-2016-2338 PUBLISHED

Reported by certcc · Published February 14, 2020

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ruby-develAmazon Linux2.0.0.648-36.amzn2.0.17
rubygem-psychAmazon Linux2.0.0-36.amzn2.0.17
rubygem-io-consoleAmazon Linux0.4.2-36.amzn2.0.17
rubygems-develAmazon Linux2.0.14.1-36.amzn2.0.17
ruby-docAmazon Linux2.0.0.648-36.amzn2.0.17
rubygem-rakeAmazon Linux0.9.6-36.amzn2.0.17
ruby2.5Ubuntu:18.04:LTS2.5.1-1ubuntu1.6
ruby2.3Ubuntu:16.04:LTS2.3.1-2~ubuntu16.04.14
ruby-psychUbuntu:18.04:LTS2.2.4-6build4

Affected products

VendorProductVersions
n/an/an/a
amazon:2ruby-devel0
amazon:2rubygem-psych0
amazon:2rubygem-io-console0
amazon:2rubygems-devel0
amazon:2ruby-doc0
amazon:2rubygem-rake0
n/an/a*
amazon:2ruby-libs0
amazon:2rubygem-minitest0
amazon:2ruby-tcltk0
amazon:2rubygem-json0
amazon:2rubygem-bigdecimal0
amazon:2ruby0
amazon:2ruby-irb0
amazon:2rubygem-rdoc0
amazon:2rubygems0

Timeline

  • Feb 14, 2020 CVE Published
  • Feb 4, 2022 EPSS Score (30 in total, the first dated here)
  • Nov 21, 2024 CVE Updated
  • Apr 2, 2026 Security Advisory
  • Oct 9, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2016-2338
vulnetix vdb fixes CVE-2016-2338

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-2338/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›