Live threats

All CVEs / Ruby-lang

CVE-2016-2338Ruby-lang Ruby

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Ruby.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
ruby-langruby2.2.2
ruby-langruby2.3.0
debiandebian_linux8.0

Official sources

References

Links published by the sources. Open them with care.