{"id":"CVE-2026-111145","summary":"ytnef through 2.1.2 Heap Out-of-Bounds Read via DecompressRTF","details":"ytnef through 2.1.2 contains a heap out-of-bounds read vulnerability in DecompressRTF() in lib/ytnef.c that never validates uncompressedSize for uncompressed RTF streams. Attackers can supply a crafted winmail.dat TNEF attachment with a malicious PT_BINARY MAPI property to crash ytnefprint or libytnef callers and leak adjacent heap memory.","modified":"2026-10-17T02:48:20.216116313Z","published":"2026-10-15T18:57:36.084Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-125"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111145.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111145.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-111145"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/ytnef-through-2.1.2-heap-out-of-bounds-read-via-decompressrtf"},{"type":"REPORT","url":"https://github.com/Yeraze/ytnef/issues/112"},{"type":"PACKAGE","url":"https://github.com/Yeraze/ytnef"},{"type":"ARTICLE","url":"https://github.com/Yeraze/ytnef/blob/d9f089144414d3b0912c29ab96f8f1c591d00319/lib/ytnef.c#L1554-L1563"},{"type":"EVIDENCE","url":"https://hackmd.io/@haind-pwn/ytnef-decompressrtf-oob-read"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/yeraze/ytnef","events":[{"introduced":"0"},{"fixed":"d9f089144414d3b0912c29ab96f8f1c591d00319"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"2.1.2"},{"fixed":"2.1.2"}],"source":["AFFECTED_FIELD","DESCRIPTION"]}}],"versions":["v2.1.1","v2.1","v2.0","v1.9.3","v1.9.2","v1.9.1-2","v1.9.1","v1.9","v1.8","v1.7"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-111145.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N"}]}