CVE-2016-2338Ruby-lang Ruby
Critical 9.8 No auth needed
Follow: this CVE · Ruby-lang · Ruby-lang Ruby We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 4.8% probability of exploitation in 30 days · percentile 93
- Auth required
- No
- Published
- Sep 29, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-787
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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
- Apply the vendor's security update for Ruby.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ruby-lang | ruby | 2.2.2 |
| ruby-lang | ruby | 2.3.0 |
| debian | debian_linux | 8.0 |
Official sources
References
Links published by the sources. Open them with care.
- www.talosintelligence.com Exploit Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- security.netapp.com Third Party Advisory