---
id: CVE-2026-111146
title: >-
  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
summary: >-
  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
  decompresse…
severity: medium
cvss: 6.1
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H'
cwe:
  - CWE-125
vendor: Yeraze
product: ytnef
affected:
  - ytnef <= 2.1.2
published: '2026-10-15'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T19:17:29.040'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-111146'
references:
  - url: 'https://github.com/Yeraze/ytnef'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/Yeraze/ytnef/blob/d9f089144414d3b0912c29ab96f8f1c591d00319/lib/ytnef.c#L1449-L1458
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/Yeraze/ytnef/blob/d9f089144414d3b0912c29ab96f8f1c591d00319/lib/ytnef.c#L1605-L1614
    label: disclosure@vulncheck.com
  - url: 'https://github.com/Yeraze/ytnef/issues/112'
    label: disclosure@vulncheck.com
  - url: 'https://hackmd.io/@haind-pwn/ytnef-decompressrtf-oob-read'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/ytnef-through-2.1.2-heap-out-of-bounds-read-via-mapiprint-in-lib-ytnef-c
    label: disclosure@vulncheck.com
tags:
  - nvd
  - cve.org
  - exploit-available
ingestedAt: '2026-10-15T19:25:46.413Z'
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-10-15T19:38:03.696767Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
