{"api_version":"1","generated_at":"2026-07-04T12:23:45+00:00","cve":"CVE-2016-2339","urls":{"html":"https://cve.report/CVE-2016-2339","api":"https://cve.report/api/cve/CVE-2016-2339.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2016-2339","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2016-2339"},"summary":{"title":"CVE-2016-2339","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.","state":"PUBLISHED","assigner":"certcc","published_at":"2017-01-06 21:59:00","updated_at":"2026-05-06 22:30:45"},"problem_types":["CWE-119","heap overflow vulnerability"],"metrics":[{"version":"3.0","source":"nvd@nist.gov","type":"Primary","score":"9.8","severity":"CRITICAL","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"7.5","severity":"","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html","name":"https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"[SECURITY] [DLA 1421-1] ruby2.1 security update","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/91234","name":"http://www.securityfocus.com/bid/91234","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Ruby 'initialize()' Function Heap Buffer Overflow Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://www.talosintelligence.com/reports/TALOS-2016-0034/","name":"http://www.talosintelligence.com/reports/TALOS-2016-0034/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Technical Description","Third Party Advisory","VDB Entry"],"title":"Cisco Talos - Talos 2016 0034","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-2339","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-2339","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Ruby","product":"Ruby","version":"affected 2.3.0 dev","platforms":[]},{"source":"CNA","vendor":"Ruby","product":"Ruby","version":"affected 2.2.2","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2016","cve_id":"2339","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ruby-lang","cpe5":"ruby","cpe6":"2.2.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2016","cve_id":"2339","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"ruby-lang","cpe5":"ruby","cpe6":"2.3.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2016","cve_id":"2339","cve":"CVE-2016-2339","epss":"0.006840000","percentile":"0.717550000","score_date":"2026-05-11","updated_at":"2026-05-12 00:01:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-05T23:24:48.934Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"[debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update","tags":["mailing-list","x_refsource_MLIST","x_transferred"],"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html"},{"name":"91234","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/91234"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://www.talosintelligence.com/reports/TALOS-2016-0034/"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"Ruby","vendor":"Ruby","versions":[{"status":"affected","version":"2.3.0 dev"},{"status":"affected","version":"2.2.2"}]}],"datePublic":"2016-06-14T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"heap overflow vulnerability","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2018-07-14T09:57:01.000Z","orgId":"37e5125f-f79b-445b-8fad-9564f167944b","shortName":"certcc"},"references":[{"name":"[debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update","tags":["mailing-list","x_refsource_MLIST"],"url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html"},{"name":"91234","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/91234"},{"tags":["x_refsource_MISC"],"url":"http://www.talosintelligence.com/reports/TALOS-2016-0034/"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cert@cert.org","ID":"CVE-2016-2339","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Ruby","version":{"version_data":[{"version_value":"2.3.0 dev"},{"version_value":"2.2.2"}]}}]},"vendor_name":"Ruby"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"heap overflow vulnerability"}]}]},"references":{"reference_data":[{"name":"[debian-lts-announce] 20180714 [SECURITY] [DLA 1421-1] ruby2.1 security update","refsource":"MLIST","url":"https://lists.debian.org/debian-lts-announce/2018/07/msg00012.html"},{"name":"91234","refsource":"BID","url":"http://www.securityfocus.com/bid/91234"},{"name":"http://www.talosintelligence.com/reports/TALOS-2016-0034/","refsource":"MISC","url":"http://www.talosintelligence.com/reports/TALOS-2016-0034/"}]}}}},"cveMetadata":{"assignerOrgId":"37e5125f-f79b-445b-8fad-9564f167944b","assignerShortName":"certcc","cveId":"CVE-2016-2339","datePublished":"2017-01-06T21:00:00.000Z","dateReserved":"2016-02-12T00:00:00.000Z","dateUpdated":"2024-08-05T23:24:48.934Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2017-01-06 21:59:00","lastModifiedDate":"2026-05-06 22:30:45","problem_types":["CWE-119","heap overflow vulnerability"],"metrics":{"cvssMetricV30":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.0","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}],"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","baseScore":7.5,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":true,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:ruby-lang:ruby:2.2.2:*:*:*:*:*:*:*","matchCriteriaId":"5FCCD8F3-E667-42F2-9861-14EDFB16583A"},{"vulnerable":true,"criteria":"cpe:2.3:a:ruby-lang:ruby:2.3.0:*:*:*:*:*:*:*","matchCriteriaId":"822307DD-7F7D-44C2-9C4B-CB8704663410"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2016","CveId":"2339","Ordinal":"1","Title":"CVE-2016-2339","CVE":"CVE-2016-2339","Year":"2016"},"notes":[{"CveYear":"2016","CveId":"2339","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2016-2339"},{"CveYear":"2016","CveId":"2339","Ordinal":"2","NoteData":"2017-01-06","Type":"Other","Title":"Published"},{"CveYear":"2016","CveId":"2339","Ordinal":"3","NoteData":"2018-07-14","Type":"Other","Title":"Modified"}]}}}