CVE-2016-2338
ruby: heap buffer overflow in the Psych::Emitter start_document function
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Amazon (medium).
Description
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 2 | ruby, ruby-debuginfo, ruby-devel and 13 more | 2.0.0.648-36.amzn2.0.17 and 8 more |
| debian 8 | ruby2.1 | 2.1.5-2+deb8u9 |
| Red Hat | ruby, ruby-devel, ruby-doc and 16 more | no fix listed |
Show all 36 entries from 3 sources
| Source | Package | Fixed in |
|---|---|---|
| amazon linux 2 | ruby | 2.0.0.648-36.amzn2.0.17 |
| amazon linux 2 | ruby-debuginfo | 2.0.0.648-36.amzn2.0.17 |
| amazon linux 2 | ruby-devel | 2.0.0.648-36.amzn2.0.17 |
| amazon linux 2 | ruby-doc | 2.0.0.648-36.amzn2.0.17 |
| amazon linux 2 | ruby-irb | 2.0.0.648-36.amzn2.0.17 |
| amazon linux 2 | ruby-libs | 2.0.0.648-36.amzn2.0.17 |
| amazon linux 2 | ruby-tcltk | 2.0.0.648-36.amzn2.0.17 |
| amazon linux 2 | rubygem-bigdecimal | 1.2.0-36.amzn2.0.17 |
| amazon linux 2 | rubygem-io-console | 0.4.2-36.amzn2.0.17 |
| amazon linux 2 | rubygem-json | 1.7.7-36.amzn2.0.17 |
| amazon linux 2 | rubygem-minitest | 4.3.2-36.amzn2.0.17 |
| amazon linux 2 | rubygem-psych | 2.0.0-36.amzn2.0.17 |
| amazon linux 2 | rubygem-rake | 0.9.6-36.amzn2.0.17 |
| amazon linux 2 | rubygem-rdoc | 4.0.0-36.amzn2.0.17 |
| amazon linux 2 | rubygems | 2.0.14.1-36.amzn2.0.17 |
| amazon linux 2 | rubygems-devel | 2.0.14.1-36.amzn2.0.17 |
| debian 8 | ruby2.1 | 2.1.5-2+deb8u9 |
| Red Hat | ruby | no fix listed |
| Red Hat | ruby-devel | no fix listed |
| Red Hat | ruby-doc | no fix listed |
| Red Hat | ruby-docs | no fix listed |
| Red Hat | ruby-irb | no fix listed |
| Red Hat | ruby-libs | no fix listed |
| Red Hat | ruby-rdoc | no fix listed |
| Red Hat | ruby-ri | no fix listed |
| Red Hat | ruby-static | no fix listed |
| Red Hat | ruby-tcltk | no fix listed |
| Red Hat | rubygem-bigdecimal | no fix listed |
| Red Hat | rubygem-io-console | no fix listed |
| Red Hat | rubygem-json | no fix listed |
| Red Hat | rubygem-minitest | no fix listed |
| Red Hat | rubygem-psych | no fix listed |
| Red Hat | rubygem-rake | no fix listed |
| Red Hat | rubygem-rdoc | no fix listed |
| Red Hat | rubygems | no fix listed |
| Red Hat | rubygems-devel | no fix listed |
References
- http://www.talosintelligence.com/reports/TALOS-2016-0032/
- https://access.redhat.com/security/cve/CVE-2016-2338
- https://lists.debian.org/debian-lts-announce/2020/03/msg00032.html
- https://nvd.nist.gov/vuln/detail/CVE-2016-2338
- https://security.netapp.com/advisory/ntap-20221228-0005/
- https://www.cve.org/CVERecord?id=CVE-2016-2338