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.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | ruby-psych | Not affected vulnerable_code_not_present | ||
| Ubuntu 16.04 | ruby2.3 | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | ruby1.9.1 | Fix pending | ||
| Red Hat Enterprise Linux 9 | ruby | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-default-gems | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-doc | Not affected | ||
| Red Hat Enterprise Linux 9 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-bigdecimal | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-bundler | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-io-console | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-irb | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-json | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-minitest | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-power_assert | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-psych | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rake | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rbs | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rdoc | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rexml | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-rss | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-test-unit | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygem-typeprof | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygems | Not affected | ||
| Red Hat Enterprise Linux 9 | rubygems-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-bundled-gems | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-default-gems | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-irb | Not affected | ||
| Red Hat Enterprise Linux 8 | ruby-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-abrt | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-abrt-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bigdecimal | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bson | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bson-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bundler | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-bundler-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-did_you_mean | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-io-console | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-irb | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-json | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-minitest | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mongo | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mongo-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mysql2 | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-mysql2-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-net-telnet | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-openssl | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-pg | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-pg-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-power_assert | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-psych | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-racc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rake | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rbs | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rdoc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rexml | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-rss | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-test-unit | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-typeprof | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygem-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygems | Not affected | ||
| Red Hat Enterprise Linux 8 | rubygems-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | ruby | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ruby-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ruby-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ruby-irb | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ruby-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ruby-tcltk | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rubygem-bigdecimal | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rubygem-io-console | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rubygem-json | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rubygem-minitest | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rubygem-psych | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rubygem-rake | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rubygem-rdoc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rubygems | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | rubygems-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-docs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-irb | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-rdoc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-ri | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ruby-tcltk | Will not fix Out of support scope |
References
- https://lists.debian.org/debian-lts-announce/2020/03/msg00032.html
- http://www.talosintelligence.com/reports/TALOS-2016-0032/
- https://security.netapp.com/advisory/ntap-20221228-0005/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.