#1151840 expat: CVE-2026-113351

Package:
src:expat
Source:
src:expat
Submitter:
Salvatore Bonaccorso
Date:
2026-11-02 20:41:01 UTC
Severity:
normal
Tags:
#1151840#5
Date:
2026-10-23 19:37:05 UTC
From:
To:
Hi,

The following vulnerability was published for expat.

CVE-2026-113351[0]:
| libexpat 2.7.2 through 2.9.0 contains a denial of service
| vulnerability because XML_ParserReset zeroes the direct byte count
| but never offsets tracked heap allocations. Attackers can submit a
| large XML document so later documents on the same reset parser fail
| with XML_ERROR_NO_MEMORY until it is recreated.


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

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-113351
https://www.cve.org/CVERecord?id=CVE-2026-113351
[1] https://github.com/libexpat/libexpat/pull/1431

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore

#1151840#14
Date:
2026-10-31 19:14:14 UTC
From:
To:
Hi Laszlo,

Attached is a debdiff for a 2.9.0-1.1 NMU that backports the upstream
fixes for these four bugs from libexpat master (none of them is in a
release yet). I have not uploaded anything; please use as much or as
little of it as you like.

Patches (01-09, after the two existing Debian patches):

01 PR #1431 CVE-2026-113351 fix parser reset (#1151840)
02 d545081f type prerequisite for #1433 on 2.9.0
03 da504c0c type prerequisite for #1433 on 2.9.0
04 PR #1433 CVE-2026-115506 precompute entity sizes (#1151841)
05 PR #1439 required follow-up to #1433
06 PR #1437 missing NULL check for m_startDoctypeDeclHandler
07 facd124e xcsdup_str test helper (from #1442)
08 PR #1444 CVE-2026-117610 empty non-final subparser call (#1152343)
09 PR #1450 CVE-2026-118370 storeAtts integer overflow (#1152337)

Notes:

- #1433 must not go in alone: libexpat issue #1438 reports that a backport
of it to 2.9.0 rejects valid CDATA with default limits; #1439 fixes
that. #1433 also needs d545081f and da504c0c (both after 2.9.0), as the
issue says.
- #1437 and facd124e are only there so the #1444 test applies and builds
(#1437 is a real NULL check fix as well). In 08 I dropped the unrelated
#1449 storeAtts test that shares a hunk in tests/misc_tests.c; nothing
else was edited by hand.
- With all eleven patches applied, the expat/ tree is identical to
R_2_9_0 plus these upstream commits, apart from the two files the
existing Debian patches change.

Testing (sid chroot, amd64):

- debian/rules does not run the upstream test suite, so I ran make check
in the build directory: 5256 checks, 0 failures (stock 2.9.0: 5196
checks, 0 failures; the 60 extra checks are the backported tests).
The buildw (XML_UNICODE) variant cannot build the tests, in stock 2.9.0
as well ("No support for UTF-16 character without wchar_t in tests").
- CVE-2026-117610, with the scenario of upstream's new test (external
entity subparser, empty non-final XML_Parse, PI handler set): 2.9.0-1
segfaults on that valid document; 2.9.0-1.1 parses it and calls the
handler.
- lintian: source tags identical to 2.9.0-1.

CVE-2025-66382 (#1121543) has no upstream fix yet and is not addressed.

Regards,
automationcanadian

#1151840#21
Date:
2026-11-01 14:10:47 UTC
From:
To:
Hi Laszlo,

No rush from my side. I'm not aware of any public exploit or of these
being exploited in the wild; I only prepared the backport because the
fixes were sitting unreleased on master. Waiting for 2.10 and packaging
the full release makes more sense than cherry-picking, so please go
ahead that way and disregard the debdiff.

Thanks for the quick reply.

Regards,
Sumit

On Sun, Nov 01, 2026 05:24 AM, "László Böszörményi (GCS)" <gcs@debian.org> wrote:

#1151840#26
Date:
2026-11-02 19:42:35 UTC
From:
To:
 Backports are fine for Bookworm, you might want to help with that.
As noted, expat 2.10  was around the corner and is just released,
upload is pending.

Regards,
Laszlo/GCS

#1151840#31
Date:
2026-11-02 20:40:27 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
expat, 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 1151840@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Laszlo Boszormenyi (GCS) <gcs@debian.org> (supplier of updated expat 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: Mon, 02 Nov 2026 20:17:03 +0100
Source: expat
Architecture: source
Version: 2.10.0-1
Distribution: unstable
Urgency: high
Maintainer: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Changed-By: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Closes: 1151840 1151841 1152337 1152343
Changes:
 expat (2.10.0-1) unstable; urgency=high
 .
   * New upstream release:
     - fixes CVE-2026-113351: denial of service with function XML_ParserReset()
       (closes: #1151840),
     - fixes CVE-2026-115506: denial of service from variations of billion
       laughs attacks and parameter laughs attacks (closes: #1151841),
     - fixes CVE-2026-117610: denial of service or more from issues with
       initial non-final empty subparser parse calls (closes: #1152343),
     - fixes CVE-2026-118370: signed integer overflow in function storeAtts()
       (closes: #1152337).
Checksums-Sha1:
 f84b5bb7927827cd7457b0432193305554145eeb 1977 expat_2.10.0-1.dsc
 ba89468a7ff378547e4449f01f4ed9c9e5aed813 8498836 expat_2.10.0.orig.tar.gz
 87d0bdefa71f11924c139dedeb45f2f35baf1b86 14472 expat_2.10.0-1.debian.tar.xz
Checksums-Sha256:
 8c4623c101959b8709a3f0a10c06a40d413dc7a6f5ffad3bc9d0cd010d850956 1977 expat_2.10.0-1.dsc
 b3644a12f62d7762b62c444f69d169ba0234f13138d0240244bca64cbe35286f 8498836 expat_2.10.0.orig.tar.gz
 9be65c3ff79ca0508590970422de0a55f117bb7134a0274dd1ed3261f85631dc 14472 expat_2.10.0-1.debian.tar.xz
Files:
 694360ab2093130dbfc57545738bc495 1977 text optional expat_2.10.0-1.dsc
 91ce483047fbcd40840e6250dca735da 8498836 text optional expat_2.10.0.orig.tar.gz
 512e8ae90574c2031618b3a1e1cfadd2 14472 text optional expat_2.10.0-1.debian.tar.xz
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEfYh9yLp7u6e4NeO63OMQ54ZMyL8FAmro5mYACgkQ3OMQ54ZM
yL9w8g//YwTf5wvo0TwvmP2VqAwtrv65NGR7vXMM+hVJ6BATLcbDpXIQSG20AGBW
XFlcd4VH60ahqiH1kqZ55bZ5FFgxrLDKDZWs/TRanLwYNRTdnmkpmjw5qkE6kwwn
TmPLjbsnIjpX5nq8sb4WQNOsLCX8osHHLWExD7BsEcqMUfRBg2XyYPegFWVzuwTO
+XSz2F5thcLIQIOqzjKUPjEZ12DGgTb16o5jW/FCOAfW2xtwAQ4PrSoBgC2s0p68
sthh2xwOsObv8Pn2/kP6r6rPhC00TNoCJ9FjOX9bdzyu6DGmKE3AWbcyjyfVokqg
pklO8CURcQC8g93xBmTEbF9dhhNjKE5JvDPHxgU2ZzYVEmI8N5bE0/3E9t+/84h2
Rkc0QgVH9JiSCjqJ4VhgFxrIwPvp0wkbKoHN5243U9r2wJ1Ve7MBTAruEQ8cYosF
DSxVNBD2Ff8WtytFfkFMib9OYQQIiJ025lLraVe/FORiigTDqmGgDavP+nt7mbTb
u/puVAGg3hLG73Tg1NBCZjYYzR2HztmfBk7R0ncs+medblT3jPGKbRrG0dh/Rocc
fb/faRZCanyWWeO+hmd60cD9sztEeAL6tfiQ2UGVmJLByjDCbWFS8byLCpXI+ImU
fmI/grW/WFyBsyJDEcm3aJlWWWgWKYOB2eM6ZQLqZqjsyhs54mQ=
=0OZ5
-----END PGP SIGNATURE-----