{"id":"CVE-2016-2339","aliases":[],"kind":"cve","tier":"cold","status":"published","title":"An exploitable heap overflow vulnerability exists in the Fiddle::Function.new \"initialize\" function functionality of Ru…","description":"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.","ai_summary":null,"severity":"critical","cvss":{"score":9.8,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"NVD"},"scores":[{"score":9.8,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd"},{"score":7.5,"version":"2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"nvd"}],"cwe":["CWE-119"],"remote":true,"remote_unauth":true,"epss":{"score":0.05144,"percentile":0.93202,"date":"2026-11-30"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":true,"exploitdb_ids":[]},"affected":[],"affected_products":[{"vendor":"Ruby","product":"Ruby","versions":"2.3.0 dev; 2.2.2","source":"cvelist"}],"ai_versions":null,"mitigation":"No fix listed yet: follow the vendor advisory.","technologies":[],"references":[{"url":"http://www.talosintelligence.com/reports/TALOS-2016-0034/","kind":"exploit"},{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html","kind":"other"},{"url":"http://www.securityfocus.com/bid/91234","kind":"other"}],"workarounds":null,"vendors":["ruby","ruby-lang"],"products":["ruby"],"cpes":["cpe:2.3:a:ruby-lang:ruby:2.2.2:*:*:*:*:*:*:*","cpe:2.3:a:ruby-lang:ruby:2.3.0:*:*:*:*:*:*:*"],"published_at":"2017-01-06T21:00:00.000Z","modified_at":"2026-06-17T00:43:51.130Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2016-2339"}],"links":{"html":"https://flawdb.com/CVE-2016-2339","markdown":"https://flawdb.com/CVE-2016-2339.md","json":"https://flawdb.com/api/v1/entries/CVE-2016-2339"}}