CVE-2026-111145

ytnef through 2.1.2 Heap Out-of-Bounds Read via DecompressRTF

Published Oct 15, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

ytnef through 2.1.2 contains a heap out‑of‑bounds read in the DecompressRTF() function. The function never validates the uncompressedSize of an RTF stream, enabling an attacker to read memory beyond the intended buffer. This flaw can leak data stored adjacent on the heap and cause ytnefprint or any libytnef caller to crash.

Affected Systems

The vulnerability affects all releases of Yeraze's ytnef up to and including version 2.1.2.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity, while the EPSS score of less than 1% shows a low likelihood of exploitation at present. The issue is not listed in the CISA KEV catalog. Attacks require the attacker to supply a crafted winmail.dat TNEF attachment containing a malicious PT_BINARY MAPI property; when ytnef processes such a file on a target system, it can read arbitrary heap data and terminate unexpectedly. The exploit path hinges on the ability to feed the vulnerable function with an invalid uncompressedSize value, which is not checked.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update ytnef to a version newer than 2.1.2 or apply any vendor‑supplied patch that adds bounds validation to DecompressRTF()
  • Implement an input‑validation layer that verifies the uncompressedSize of RTF streams before decompression, ensuring it does not exceed safe limits
  • Monitor system logs for ytnef crashes or abnormal memory reads and investigate any incidents promptly

Generated by OpenCVE AI on October 16, 2026 at 17:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title ytnef through 2.1.2 Heap Out-of-Bounds Read via DecompressRTF
First Time appeared Ytnef Project
Ytnef Project ytnef
Weaknesses CWE-125
CPEs cpe:2.3:a:ytnef_project:ytnef:*:*:*:*:*:*:*:*
Vendors & Products Ytnef Project
Ytnef Project ytnef
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H'}

cvssV4_0

{'score': 6.9, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 21, 2026, 1:20 AM
Reserved
Oct 15, 2026, 5:03 PM
Status
Deferred
Published
Oct 15, 2026, 7:17 PM
Modified
Oct 21, 2026, 2:17 AM