Live threats
VulnFox

All CVEs / Ruby-lang

CVE-2016-2339Ruby-lang Ruby

Critical 9.8 No auth needed

Priority
74
CVSS 3.0
9.8
EPSS
—
Auth required
No
Published
Jan 6, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-119
Vector
CVSS:3.0/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 Fiddle::Function.new "initialize" function functionality of Ruby. In Fiddle::Function.new "initialize" heap buffer "arg_types" allocation is made based on args array length. Specially constructed object passed as element of args 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

Official sources

References

Links published by the sources. Open them with care.