# CVE-2016-2338

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2020-02-14 · Modified: 2024-08-05
- Aliases: UBUNTU-CVE-2016-2338, DLA-2158-1
- Record: https://cvemate.com/vulnerability/CVE-2016-2338 · JSON: https://cvemate.com/vulnerability/CVE-2016-2338/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 4.832%, percentile 92.234%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- debian ruby2.1 (Debian): \< 2.1.5-2+deb8u9
- ubuntu ruby-psych (Ubuntu): \< 2.2.4-6build4
- ubuntu ruby2.3 (Ubuntu): \< 2.3.1-2~ubuntu16.04.14
- ubuntu ruby2.5 (Ubuntu): \< 2.5.1-1ubuntu1.6
- debian debian\_linux: 8.0
- ruby-lang ruby: 2.2.2 \| 2.3.0

## 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/>
- <https://ubuntu.com/security/CVE-2016-2338>
- <https://www.cve.org/CVERecord?id=CVE-2016-2338>

---

Data as of 2026-12-05T03:30:39.889Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
