Back

CVE-2016-2339

CRITICAL

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.

Published: Jan 6, 2017 Modified: Jun 17, 2026
CWE-119

CVSS Metrics

CVSSv3
Attack Vector: NETWORK Attack Complexity: LOW Privileges Required: NONE User Interaction: NONE Scope: UNCHANGED Confidentiality Impact: HIGH Integrity Impact: HIGH Availability Impact: HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected Products (2)

Vendor Product Version
ruby-lang ruby 2.2.2
ruby-lang ruby 2.3.0

GitHub Security Advisory GHSA-c4w7-m676-pcvp

An exploitable heap overflow vulnerability exists in the Fiddle::Function.new "initialize"...

Risk Scores

CVSS Score 9.8 / 10
EPSS Score 5.19%

Top 8% most likely to be exploited

Threat Score 40.8 / 100

Data Sources

NVD EPSS GitHub