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.
Advisories
Source ID Title
Debian DLA Debian DLA DLA-1421-1 ruby2.1 security update
EUVD EUVD EUVD-2016-3423 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.
Ubuntu USN Ubuntu USN USN-3365-1 Ruby vulnerabilities
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Sat, 12 Jul 2025 13:45:00 +0000

Type Values Removed Values Added
Metrics epss

{'score': 0.00404}

epss

{'score': 0.00703}


cve-icon MITRE

Status: PUBLISHED

Assigner: certcc

Published:

Updated: 2024-08-05T23:24:48.934Z

Reserved: 2016-02-12T00:00:00

Link: CVE-2016-2339

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2017-01-06T21:59:00.493

Modified: 2025-04-20T01:37:25.860

Link: CVE-2016-2339

cve-icon Redhat

Severity : Moderate

Publid Date: 2016-06-14T00:00:00Z

Links: CVE-2016-2339 - Bugzilla

cve-icon OpenCVE Enrichment

No data.