CVE-2016-2338
publishedruby: heap buffer overflow in the Psych::Emitter start_document function
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | certcc |
| Amazon Linux | AL2 | Release evaluationALAS2-2025-2990 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | jessie | ruby2.1 | Advisory build | 2.1.5-2+deb8u9 | DLA-2158-1 |
| Amazon Linux | AL2 | rubyaarch64 | Listed in advisory | Not stated | ALAS2-2025-2990 |
| Amazon Linux | AL2 | rubyi686 | Listed in advisory | Not stated | ALAS2-2025-2990 |
| Amazon Linux | AL2 | rubynoarch | Listed in advisory | Not stated | ALAS2-2025-2990 |
| Amazon Linux | AL2 | rubysrc | Listed in advisory | Not stated | ALAS2-2025-2990 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | rubyx86_64 | Listed in advisory | Not stated | ALAS2-2025-2990 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | certcc · cna |
Weaknesses
1- n/a
References
3- http://www.talosintelligence.com/reports/TALOS-2016-0032/
- [debian-lts-announce] 20200325 [SECURITY] [DLA 2158-1] ruby2.1 security update https://lists.debian.org/debian-lts-announce/2020/03/msg00032.html
- https://security.netapp.com/advisory/ntap-20221228-0005/
Provider assertions
2certcc · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 969a5f009a75348183fcf3668cdb2968fa2fd734b55721746bfe6257fd1ebadd
- Ingested
- 23 Sep 2026, 07:41:13 UTC
- Source record
- Official CVE record