CVE-2026-111146
CVE-2026-111146 · ytnef through 2.1.2 Heap Out-of-Bounds Read via MAPIPrint in lib/ytnef.c
This page contains facts from public vulnerability sources. Check the original advisory before updating.
ytnef through 2.1.2 contains a heap out-of-bounds read vulnerability in MAPIPrint() that allows attackers to read past heap allocations by supplying compressed RTF properties. Attackers can deliver a crafted winmail.dat whose decompressed RTF lacks a NUL terminator, causing printf to over-read, crashing ytnefprint and leaking adjacent heap bytes.
CVSS 6.9 · Medium · EPSS 0.1%
- Published
- Updated
Stack: system
Affected products and versions
ytnef
- Versions
- ≥ 0, ≤ 2.1.2: Affected (semver)
No fix published
libytnef Debian:12
- Versions
- 2.0-1
- 2.1.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libytnef Debian:13
- Versions
- 2.1.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libytnef Debian:14
- Versions
- 2.1.2-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libytnef Ubuntu:16.04:LTS
- Versions
- 1.5-6
- 1.5-9
- 1.5-9ubuntu0.1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libytnef Ubuntu:18.04:LTS
- Versions
- 1.9.2-2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libytnef Ubuntu:20.04:LTS
- Versions
- 1.9.3-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libytnef Ubuntu:22.04:LTS
- Versions
- 1.9.3-3
- 2.0-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libytnef Ubuntu:24.04:LTS
- Versions
- 2.0-1
- 2.1.2-1
- 2.1.2-1build1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libytnef Ubuntu:26.10
- Versions
- 2.1.2-1build2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
libytnef Ubuntu:26.04:LTS
- Versions
- 2.1.2-1build1
- 2.1.2-1build2
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
Original sources
- https://hackmd.io/@haind-pwn/ytnef-decompressrtf-oob-read
- https://github.com/Yeraze/ytnef/issues/112
- https://github.com/Yeraze/ytnef/blob/d9f089144414d3b0912c29ab96f8f1c591d00319/lib/ytnef.c#L1449-L1458
- https://github.com/Yeraze/ytnef/blob/d9f089144414d3b0912c29ab96f8f1c591d00319/lib/ytnef.c#L1605-L1614
- https://github.com/Yeraze/ytnef
- https://www.vulncheck.com/advisories/ytnef-through-2.1.2-heap-out-of-bounds-read-via-mapiprint-in-lib-ytnef-c
- https://nvd.nist.gov/vuln/detail/CVE-2026-111146