#1154657 libytnef: CVE-2026-111145 CVE-2026-111146 and GHSA-jhg4-xcxm-cfg6

Package:
src:libytnef
Source:
src:libytnef
Submitter:
Salvatore Bonaccorso
Date:
2026-11-24 10:21:00 UTC
Severity:
normal
Tags:
#1154657#5
Date:
2026-11-21 08:53:06 UTC
From:
To:
Hi,

The following vulnerabilities were published for libytnef.

CVE-2026-111145[0]:
| 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.


CVE-2026-111146[1]:
| 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.

And there is GHSA-jhg4-xcxm-cfg6, [2].


If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities & Exposures) ids in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-111145
https://www.cve.org/CVERecord?id=CVE-2026-111145
[1] https://security-tracker.debian.org/tracker/CVE-2026-111146
https://www.cve.org/CVERecord?id=CVE-2026-111146
[2] https://github.com/Yeraze/ytnef/security/advisories/GHSA-jhg4-xcxm-cfg6
[3] https://github.com/Yeraze/ytnef/commit/4729c3f2662bd0340cbaa6e7281442292c22d227

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore

#1154657#10
Date:
2026-11-24 10:19:42 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libytnef, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1154657@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jordi Mallach <jordi@debian.org> (supplier of updated libytnef package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Tue, 24 Nov 2026 10:54:53 +0100
Source: libytnef
Architecture: source
Version: 2.1.5-1
Distribution: unstable
Urgency: medium
Maintainer: Ricardo Mones <mones@debian.org>
Changed-By: Jordi Mallach <jordi@debian.org>
Closes: 953858 1154657
Changes:
 libytnef (2.1.5-1) unstable; urgency=medium
 .
   * New upstream release with the following security fixes since 2.1.2:
     - [CVE-2026-111145]: Heap OOB read in DecompressRTF().
     - [CVE-2026-111146]: Heap OOB read in MAPIPrint().
     - [GHSA-jhg4-xcxm-cfg6]: Heap overflow in DecompressRTF().
       (Closes: #1154657)
     - Path traversal in ytnef -f attachment names (upstream #113).
     - NULL dereference in MAPIPrint() (upstream #111).
   * This release additionally fixes decoding on big-endian. (Closes: #953858)
   * Drop redundant Priority field for source package.
   * Drop Rules-Requires-Root: no field, now implicit.
   * Bump debhelper-compat to v14.
   * Update Standards-Version to 4.7.4.
   * Drop references to FSF's old postal address.
   * Drop Debian-provided manpages and install new upstream ones.
   * Use watch v5 with the GitHub template.
   * Add new MAPISysTimetoDTRSize@Base symbol to symbols file.
 .
   * Update copyright years.
Checksums-Sha1:
 b18ddd2805e0ae9e8ffd34778169d1d9f078fa40 1972 libytnef_2.1.5-1.dsc
 9baca0186ac0061dd665ac63879a9467a5b5b11c 315175 libytnef_2.1.5.orig.tar.gz
 bd547edd3cb065ba223cea145c03208fa24503a6 5252 libytnef_2.1.5-1.debian.tar.xz
 101a8c10384d30eb8aa40668917008a4665a4edd 6842 libytnef_2.1.5-1_amd64.buildinfo
Checksums-Sha256:
 85c1a11bcd1408feea32f520dce0f8731f3980691790d1b66c9acb0187a8f1a0 1972 libytnef_2.1.5-1.dsc
 656388b7472c040fa4b816ab35c33f3236c1a0467a7da0d5b20862023fba46fc 315175 libytnef_2.1.5.orig.tar.gz
 173cef2a74b76a16127666e9419d1b9ba122831cdc27a27e4473e7995783fe62 5252 libytnef_2.1.5-1.debian.tar.xz
 4c309e54ad2b09cb9f41d92b3b09ffc70b8557cdb79a2f99a2c4bcaff511efa1 6842 libytnef_2.1.5-1_amd64.buildinfo
Files:
 00f794e0c7b7811459b4bff3502325a2 1972 utils optional libytnef_2.1.5-1.dsc
 3ee7872fb0e0c951bb6f4b1f34531a4a 315175 utils optional libytnef_2.1.5.orig.tar.gz
 b39a1c2e8924381bf4f8f4f435e1c126 5252 utils optional libytnef_2.1.5-1.debian.tar.xz
 1a8ced9705bec2e20fb2782e63bc91a1 6842 utils optional libytnef_2.1.5-1_amd64.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE6BdUhsApKYN8KGoWJVAvb8vjywQFAmsFX+gACgkQJVAvb8vj
ywQirA//YKm0zoHb9eB1K16v7RFedOLbWf+qWX9gjlQZCNQsC+GxAZJtcs+b5nm1
MNF95MJdPDSmTDbhCpB4IIhpBg7fgidCYnHHR3MXCGHuiNjUJWVrqoTFUiFdkWEt
GzjU2qvuIX8OVSdU6uHN5IRewLGwK/SaQGVfT4UrRSvnHMq0bUb9WBB6z8tMWnJX
UI4a6vzqUEZkSxWQN5vywIx8Lrz+Tvpqcwu/mvfpv+U1tFAR4WzuNnFbtPztxfXZ
47wPrzZMJyJyMsjvGOirOf/bZwEiZoJCUI+DuWRHP1WVz9/Ln6qmR5Svsoki5ULO
RlOrpVToejM0K9tL2S1bXdlIKH0blbYKo1rWCXPQSB51XrnhsL7qj6PqHspVeWev
sOn0OlZUDBIFOdHBmnskJAZ8GnBG3dxZJ9O6KvFwIKUaULyLgZUda+GJeQoxx5ko
dlEsugHjh+nQXre3+JEFLNkjw6kxX1WCMtEEyTPZLqWudHs9QUvG2V26m2cTLWup
OP9anAstfGSy46GafYkcczzu1RD9PEQb3Qj+BVz6ynOe3niYqJceNIVpcqrrgw1B
bxP52G4ONAwOx2nzwKHrrwbwprowpiKPFX4PP+PRO8k/OZJ7QYClbf4PyD0dghvY
RqYlr0cH6eOZhAo0ZEFFPmuQDrHw+HKil2UyIWLZc+lsTdxI5Fs=
=zo5W
-----END PGP SIGNATURE-----