Skip to content
Heist/ feed
Back to feed
Medium

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-111145
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 03:24 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 15 Oct 2026, 18:57 UTC

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.

osv:CVE-2026-111145
Complete source record
{
  "id": "b319dbe21579ab35b21ef7e334c3473d74932c896ec743bca63f25360df6f63f",
  "url": "https://osv.dev/vulnerability/CVE-2026-111145",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ytnef through 2.1.2 Heap Out-of-Bounds Read via DecompressRTF",
    "summary": "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.",
    "evidence": "osv:CVE-2026-111145",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-111145",
      "aliases": [
        "CVE-2026-111145"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/yeraze/ytnef",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "d9f089144414d3b0912c29ab96f8f1c591d00319"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.1.2"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "2.1.2"
                      }
                    ],
                    "source": "DESCRIPTION"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.1.2",
            "v2.1.1",
            "v2.1",
            "v2.0",
            "v1.9.3",
            "v1.9.2",
            "v1.9.1-2",
            "v1.9.1",
            "v1.9",
            "v1.8",
            "v1.7"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-111145.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.523623242Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111145.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-111145",
        "https://www.vulncheck.com/advisories/ytnef-through-2.1.2-heap-out-of-bounds-read-via-decompressrtf",
        "https://github.com/Yeraze/ytnef/issues/112",
        "https://github.com/Yeraze/ytnef",
        "https://github.com/Yeraze/ytnef/blob/d9f089144414d3b0912c29ab96f8f1c591d00319/lib/ytnef.c#L1554-L1563",
        "https://hackmd.io/@haind-pwn/ytnef-decompressrtf-oob-read"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-125"
        ],
        "cna_assigner": "VulnCheck",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/111xxx/CVE-2026-111145.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-111145",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 492177,
  "published_at": "2026-10-15T18:57:36.084+00:00"
}