Description
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.
References6
- github.com/Yeraze/ytnef
- github.com/Yeraze/ytnef/blob/d9f089144414d3b0912c29ab96f8f1c591…
- github.com/Yeraze/ytnef/blob/d9f089144414d3b0912c29ab96f8f1c591…
- github.com/Yeraze/ytnef/issues/112
- hackmd.io/@haind-pwn/ytnef-decompressrtf-oob-read
- www.vulncheck.com/advisories/ytnef-through-2.1.2-heap-out-of-bo…
Metrics
- CVSS 3.1
-
6.1
MEDIUM
Score source: CNA
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H - CVSS 4.0
-
6.9
MEDIUM
Score source: CNA
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 0% percentile: 2 · as of 10 November 2026
- CWE
- CWE-125
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.