Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious winmail.dat with oversized uncompressedSize
-
DeliveryDeliver as email TNEF attachment
-
ExploitVictim processes file with ytnefprint/libytnef
-
ExecutionDecompressRTF reads past heap buffer
-
ImpactCrash parser and leak adjacent heap memory
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the parsed TNEF stream contain an uncompressed RTF stream carried in a PT_BINARY MAPI property, where DecompressRTF() trusts the attacker-declared uncompressedSize without bounds-checking it against the actual buffer. The attacker must get the crafted winmail.dat in front of a caller - ytnefprint or any application linking libytnef - and that caller must actually process the attachment (UI:P, passive user interaction). Limiting factors: the attack vector is local/file-based (AV:L), not remotely reachable over a network service; no authentication or privileges are needed (PR:N); and impact is bounded to a crash (DoS) plus limited adjacent-heap disclosure rather than code execution. Realistic risk concentrates in mail gateways, converters, or forensic tooling that auto-ingest TNEF attachments. |
| Impact | This is a moderate, not top-tier, priority. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P, score 6.9) describes a local, low-complexity, unauthenticated flaw that nonetheless requires passive user interaction - a victim must feed a crafted winmail.dat to ytnefprint or a libytnef-backed caller. Impact is split: confidentiality is only Low (adjacent heap bytes leaked, a CWE-125 out-of-bounds read, not arbitrary memory disclosure) while availability is High (reliable crash of the parser). There is no KEV listing and no EPSS score in the provided data, so widespread automated exploitation is not evidenced; however, a public exploit write-up (hackmd POC) and a VulnCheck advisory confirm working exploit code exists, making opportunistic or targeted use plausible against systems that auto-process TNEF attachments. Net: a real but contained bug - primarily a denial-of-service and limited info-leak in a niche parsing library, not a remote code execution or network-exposed issue. No EPSS or KEV data was supplied, so exploitation likelihood is inferred only from POC existence; verify EPSS before final prioritization. |
| Exploit ScenarioDerived | An attacker emails a victim a winmail.dat TNEF attachment containing a crafted PT_BINARY MAPI property whose uncompressed RTF stream declares an oversized uncompressedSize. When the victim or an automated pipeline runs ytnefprint (or any libytnef caller) over the file, DecompressRTF() reads past the heap buffer, crashing the process and potentially leaking adjacent heap memory into output. A public proof-of-concept and write-up for this exact path already exist. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 15, 2026
Heap out-of-bounds read in ytnef through 2.1.2 allows unauthenticated local attackers to crash the application and leak adjacent heap memory by supplying a crafted winmail.dat TNEF file with a malicious PT_BINARY MAPI property. Publicly available exploit code exists, though the vulnerability is not confirmed as actively exploited. The CVSS 4.0 score is 6.9 (moderate), and exploitation requires the caller to process the attachment (passive user interaction).
RemediationAI
No vendor-released patch is identified at time of analysis. Monitor the GitHub repository (https://github.com/Yeraze/ytnef) and issue #112 for an update. As a compensating control, avoid automatic processing of untrusted winmail.dat files: disable TNEF handling in mail gateways and email clients, and block or quarantine TNEF attachments. For applications using libytnef, run them with minimal privileges and consider sandboxing to limit heap disclosure. If TNEF processing is unavoidable, implement strict input validation or switch to a memory-safe parser. These mitigations may interfere with legitimate TNEF-formatted emails. A public proof-of-concept exploit is available at https://hackmd.io/@haind-pwn/ytnef-decompressrtf-oob-read, so prioritize monitoring for exploitation attempts.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in DecompressRTF() in lib/ytnef.c, which handles the decompression of RTF streams embedded in TNEF (Transport Neutral Encapsulation Format) files, commonly seen as winmail.dat attachments. TNEF is a Microsoft proprietary format used to encapsulate MAPI properties, including PT_BINARY properties that can carry compressed or uncompressed RTF data. The function fails to validate the attacker-supplied uncompressedSize field against the actual buffer size for uncompressed RTF streams, leading to a heap out-of-bounds read (CWE-125). This allows reading beyond the allocated buffer, potentially disclosing sensitive heap memory or causing a crash. The CPE cpe:2.3:a:yeraze:ytnef:*:*:*:*:*:*:*:* indicates all versions of Yeraze ytnef are affected, up to and including 2.1.2. The attack vector is local (AV:L) because the attacker must deliver the crafted file to a victim who opens it, but the impact could extend to any service that automatically parses TNEF attachments, such as mail gateways.
Know when Ytnef gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Attacker supplies a file processed locally so AV:L and UI:R; no privileges needed (PR:N); out-of-bounds read yields limited disclosure (C:L) and reliable crash (A:H) with no integrity impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
The TNEFFillMapi function in lib/ytnef.c in libytnef in ytnef through 1.9.2 does not ensure a nonzero count value before
In ytnef 1.9.3, the SwapWord function in lib/ytnef.c allows remote attackers to cause a denial-of-service (and potential
In ytnef 1.9.3, the TNEFSubjectHandler function in lib/ytnef.c allows remote attackers to cause a denial-of-service (and
An issue was discovered in ytnef before 1.9.2. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitabl
Heap out-of-bounds read in ytnef through 2.1.2 allows an attacker to crash the ytnefprint utility and incidentally leak
In libytnef in ytnef through 1.9.2, there is a heap-based buffer over-read due to incorrect boundary checking in the SIZ
In ytnef 1.9.2, the TNEFFillMapi function in lib/ytnef.c allows remote attackers to cause a denial of service (memory co
In ytnef 1.9.2, the SwapWord function in lib/ytnef.c allows remote attackers to cause a denial of service (heap-based bu
In ytnef 1.9.2, the MAPIPrint function in lib/ytnef.c allows remote attackers to cause a denial of service (NULL pointer
In ytnef 1.9.2, the DecompressRTF function in lib/ytnef.c allows remote attackers to cause a denial of service (heap-bas
In ytnef 1.9.2, the SwapDWord function in lib/ytnef.c allows remote attackers to cause a denial of service (heap-based b
An issue was discovered in ytnef before 1.9.1. Rated high severity (CVSS 7.8), this vulnerability is no authentication r
EUVD-2026-102272
NVD
CVE.org
EPSS
GitHub
Exploit-DB