ALAS2023-2026-2157


Amazon Linux 2023 Security Advisory: ALAS2023-2026-2157
Advisory Released Date: 2026-09-14
Advisory Updated Date: 2026-09-14
Severity: Important

Issue Overview:

libexpat before 2.8.2 lacks handler call depth tracking for calls to XML_GetBuffer, XML_Parse, XML_ParseBuffer, XML_ParserFree, or XML_ParserReset from within handlers in cases of a policy violation. Thus, a use-after-free can occur, (CVE-2026-50219)

libexpat before 2.8.2 lacks handler call depth tracking for calls to XML_ResumeParser from within handlers in cases of a policy violation. Thus, a use-after-free can occur (similar to the CVE-2026-50219 situation). (CVE-2026-56131)

libexpat before 2.8.2 has an integer overflow in addBinding. (CVE-2026-56404)

libexpat before 2.8.2 has an integer overflow in getAttributeId. (CVE-2026-56405)

libexpat before 2.8.2 has an integer overflow in copyString. (CVE-2026-56408)

xmlwf in libexpat before 2.8.2 has an integer overflow for the output filename when -d outputDir is used. (CVE-2026-56409)

xmlwf in libexpat before 2.8.2 has an integer overflow in resolveSystemId. (CVE-2026-56410)

xmlwf in libexpat before 2.8.2 has an integer overflow in endDoctypeDecl via NOTATION declarations. (CVE-2026-56411)

libexpat before 2.8.2 does not consider XML_TOK_DATA_CHARS in doCdataSection and thus lacks handler call depth tracking for various calls from within handlers in cases of a policy violation. Thus, a use-after-free can occur. NOTE: this issue exists because of an incomplete fix for CVE-2026-50219. (CVE-2026-56412)

Expat through 2.8.3 contains a denial of service vulnerability caused by quadratic algorithmic complexity in the storeAtts() function in xmlparse.c, where processing N specified attributes with non-normalized values triggers an O(N^2) linear scan of elementType->defaultAtts to determine CDATA status. A remote unauthenticated attacker can supply a single well-formed XML document of a few megabytes to an application parsing untrusted XML to cause excessive CPU consumption, resulting in denial of service without requiring authentication, external entity resolution, or non-default parser options. (CVE-2026-66046)

libexpat before 2.8.4 lacks handler call depth tracking with custom encoding callbacks. Thus, a use-after-free can occur. NOTE: this is similar to CVE-2026-50219, CVE-2026-56131 and CVE-2026-56412. (CVE-2026-76957)


Affected Packages:

expat


Issue Correction:
Run dnf update expat --releasever 2023.12.20260914 or dnf update --advisory ALAS2023-2026-2157 --releasever 2023.12.20260914 to update your system.
More information on how to update your system can be found on this page: Amazon Linux 2023 documentation

New Packages:
aarch64:
    expat-static-2.8.3-1.amzn2023.0.1.aarch64
    expat-devel-2.8.3-1.amzn2023.0.1.aarch64
    expat-debuginfo-2.8.3-1.amzn2023.0.1.aarch64
    expat-2.8.3-1.amzn2023.0.1.aarch64
    expat-debugsource-2.8.3-1.amzn2023.0.1.aarch64

src:
    expat-2.8.3-1.amzn2023.0.1.src

x86_64:
    expat-debugsource-2.8.3-1.amzn2023.0.1.x86_64
    expat-2.8.3-1.amzn2023.0.1.x86_64
    expat-devel-2.8.3-1.amzn2023.0.1.x86_64
    expat-static-2.8.3-1.amzn2023.0.1.x86_64
    expat-debuginfo-2.8.3-1.amzn2023.0.1.x86_64