{"id":"CVE-2016-2338","published":"2020-02-14T00:00:00Z","modified":"2024-08-05T23:24:48Z","title":"An exploitable heap overflow vulnerability exists in the Psych::Emitter start_document function of Ruby","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.04832,"percentile":0.92201,"provenance":"source"},"cwes":[],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2020/03/msg00032.html","tags":["mailing-list"]},{"url":"http://www.talosintelligence.com/reports/TALOS-2016-0032/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20221228-0005/","tags":[]}],"priority":{"score":23.4,"factors":[{"name":"EPSS percentile","points":18.44},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2022-12-19","earliestUrl":"https://github.com/SpiralBL0CK/CVE-2016-2338-nday","repos":[{"name":"SpiralBL0CK/CVE-2016-2338-nday","url":"https://github.com/SpiralBL0CK/CVE-2016-2338-nday","stars":0,"created":"2022-12-19"}]},"first":{"date":"2022-12-19","source":"PoC-in-GitHub","url":"https://github.com/SpiralBL0CK/CVE-2016-2338-nday"},"provenance":"source"},"summary":{"text":"The Psych::Emitter start_document function in Ruby contains a heap overflow flaw: the heap buffer \"head\" is allocated based on the length of the tags array, but a specially constructed object placed in that array can enlarge it after the allocation, overflowing the buffer. An attacker who can supply a crafted object as an element of the tags array can trigger the overflow, with the vulnerable code path reached through the affected Psych emitter usage.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:12:10Z"},"euvd":{"id":"EUVD-2016-3422","exploited":false,"provenance":"source"}}