{"schemaVersion":3,"id":"CVE-2016-2338","aliases":["UBUNTU-CVE-2016-2338","DLA-2158-1"],"status":"published","duplicateOf":null,"title":null,"description":"An exploitable heap overflow vulnerability exists in the Psych::Emitter start_document function of Ruby. In Psych::Emitter start_document function heap buffer \"head\" allocation is made based on tags array length. Specially constructed object passed as element of tags array can increase this array size after mentioned allocation and cause heap overflow.","dates":{"published":"2020-02-14T00:00:00.000Z","modified":"2024-08-05T23:24:48.961Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true}]},"epss":{"probability":0.04741,"percentile":0.91766,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.059000000000000025,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.04682},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04872,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04741,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04741,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04741,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04741,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04741,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04741,"percentile":0.91766}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04682,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04872,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04741,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04741,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04741,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04741,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04741,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04741,"percentile":0.91766}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_E422636454FF8548","name":"Exploit Reference (talosintelligence.com)","source":"reference","url":"http://www.talosintelligence.com/reports/TALOS-2016-0032/","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"}],"affected":[{"vendor":"debian","product":"ruby2.1","name":"ruby2.1","label":"ruby2.1","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/ruby2.1","purlType":"deb","versions":[{"text":"< 2.1.5-2+deb8u9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.1.5-2+deb8u9","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ruby-psych","name":"ruby-psych","label":"ruby-psych","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ruby-psych","purlType":"deb","versions":[{"text":"< 2.2.4-6build4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.2.4-6build4","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ruby2.3","name":"ruby2.3","label":"ruby2.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ruby2.3","purlType":"deb","versions":[{"text":"< 2.3.1-2~ubuntu16.04.14","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.3.1-2~ubuntu16.04.14","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ruby2.5","name":"ruby2.5","label":"ruby2.5","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ruby2.5","purlType":"deb","versions":[{"text":"< 2.5.1-1ubuntu1.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.5.1-1ubuntu1.6","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"ruby-lang","product":"ruby","name":"ruby","label":"ruby","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"2.2.2","noFixRecorded":false,"fixedIn":null},{"text":"2.3.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"2.2.2 | 2.3.0","eol":{"isEol":true,"eolDate":"2018-03-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"2.2","label":"2.2","eolFrom":"2018-03-31T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"2.2.10"},"product":{"name":"ruby","label":"Ruby","category":"lang"}},"hubHref":"/vendor/ruby-lang/ruby"}],"affectedCount":6,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://lists.debian.org/debian-lts-announce/2020/03/msg00032.html","label":"lists.debian.org/debian-lts-announce/2020/03/msg00032.html","hostname":"lists.debian.org","tags":["Mailing List","Third Party Advisory"]},{"url":"http://www.talosintelligence.com/reports/TALOS-2016-0032/","label":"www.talosintelligence.com/reports/TALOS-2016-0032/","hostname":"www.talosintelligence.com","tags":["Exploit","Third Party Advisory","REPORT"]},{"url":"https://security.netapp.com/advisory/ntap-20221228-0005/","label":"security.netapp.com/advisory/ntap-20221228-0005/","hostname":"security.netapp.com","tags":["Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2016-2338","label":"ubuntu.com/security/CVE-2016-2338","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-2338","label":"www.cve.org/CVERecord?id=CVE-2016-2338","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2020-02-14T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T23:24:48.961Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T21:36:44.296Z","stale":false,"partial":false}}