cve.bz

CVE-2026-76641 libexpat libexpat: Out-of-bounds Read

8.7 highEPSS 0.4%

High (8.7) in libexpat libexpat. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
Expat through 2.8.3 contains an out-of-bounds read vulnerability that allows attackers to trigger memory corruption by processing XML with external entity parsers created via XML_ExternalEntityParserCreate. A struct size mismatch between ELEMENT_TYPE members causes storeAtts to read the attIndex member past allocated memory boundaries, resulting in failure to normalize whitespace in non-CDATA attributes or a wild pointer dereference causing a segfault. This vulnerability was introduced by the fix for CVE-2026-66046.

Severity

CVSS 4.0

8.7 high
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 30th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-08-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-76641 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-76641?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-76641?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-76641 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
libexpatthrough 2.8.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTSgdcm, tdom, smart and 4 moreno fix listedUBUNTU-CVE-2026-76641
Ubuntu18.04:LTSgdcm, tdom, vnc4 and 5 moreno fix listedUBUNTU-CVE-2026-76641
Ubuntu20.04:LTS, 22.04:LTStdom, wbxml2, cadaver and 2 moreno fix listedUBUNTU-CVE-2026-76641
Ubuntu22.04:LTSexpat2.4.7-1ubuntu0.9UBUNTU-CVE-2026-76641 USN-8813-1
Ubuntu24.04:LTSexpat2.6.1-2ubuntu0.6UBUNTU-CVE-2026-76641 USN-8813-1
Ubuntu24.04:LTStdom, cadaver, matanzano fix listedUBUNTU-CVE-2026-76641
Ubuntu26.04:LTSexpat2.7.4-1ubuntu0.2UBUNTU-CVE-2026-76641 USN-8813-1
Ubuntu26.04:LTStdom, wbxml2, matanza and 1 moreno fix listedUBUNTU-CVE-2026-76641
Ubuntu26.10tdom, wbxml2, cadaver and 3 moreno fix listedUBUNTU-CVE-2026-76641
UbuntuPro:14.04:LTSexpat2.1.0-4ubuntu1.4+esm13UBUNTU-CVE-2026-76641 USN-8813-1
UbuntuPro:14.04:LTSvtk, vnc4, coin3 and 1 moreno fix listedUBUNTU-CVE-2026-76641
UbuntuPro:16.04:LTSexpat2.1.0-7ubuntu0.16.04.5+esm14UBUNTU-CVE-2026-76641 USN-8813-1
6 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hathummingbird:1expat, expat-devel, expat-static0:2.8.4-0.1.hum1RHSA-2026:65568
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 10 moreexpat2.8.5-150400.3.40.1SUSE-SU-2026:4623-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreMozillaFirefox153.5.0-150400.157.16.1SUSE-SU-2026:4834-1
SUSELinux Enterprise Module for Basesystem 15 SP7expat2.8.5-150700.3.15.1SUSE-SU-2026:4619-1
SUSELinux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Workstation Extension 15 SP7MozillaThunderbird153.5.0-150400.13.9.1SUSE-SU-2026:4736-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5MozillaFirefox153.5.0-118.16.2SUSE-SU-2026:4806-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5expat2.8.5-21.55.1SUSE-SU-2026:4615-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0MozillaFirefox153.5.0-160000.1.1SUSE-SU-2026:24260-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0expat2.8.4-160000.1.1SUSE-SU-2026:23912-1
SUSELinux Micro 6.0expat2.8.5-159998.1.1SUSE-SU-2026:24323-1
SUSELinux Micro 6.1expat2.8.5-slfo.1.1_1.1SUSE-SU-2026:24554-1
SUSELinux Micro 6.2expat2.8.4-160000.1.1SUSE-SU-2026:23894-1
openSUSELeap 16.0MozillaFirefox153.5.0-160000.1.1openSUSE-SU-2026:22139-1
openSUSELeap 16.0expat2.8.4-160000.1.1openSUSE-SU-2026:21945-1
openSUSETumbleweedexpat2.8.4-1.1openSUSE-SU-2026:11733-1
Alpinev3.21, v3.22, v3.23 and 1 moreexpat2.8.4-r0ALPINE-CVE-2026-76641
Azure Linux3expat2.8.3-2AZL-96932
Alpaquita23, 25expat2.8.3-r1BELL-CVE-2026-76641
Alpaquitastreamexpat2.8.3-r2BELL-CVE-2026-76641
BellSoft Hardened Containers23, 25expat2.8.3-r1BELL-CVE-2026-76641
BellSoft Hardened Containersstreamexpat2.8.3-r2BELL-CVE-2026-76641

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Important: An out-of-bounds read vulnerability in Expat can lead to memory corruption and denial of service when processing specially crafted XML with external entity parsers.

Red Hat's mitigation

To mitigate this implement a strict "accept known good" input validation strategy that rejects any data failing to match expected specifications. Rigorously validate all length arguments, offsets, and buffer size calculations before using them to access memory boundaries. Additionally, avoid relying solely on sentinels (such as NUL characters) within untrusted input to determine array or buffer lengths. Finally, apply defense-in-depth by combining allowlists with denylists to aggressively drop outright malformed inputs before processing begins.

ProductPackageStateAdvisory
Red Hat Hardened Imagesexpat-main-2.8.4-0.1.hum1Fixed 2026-09-08RHSA-2026:65568
Red Hat Enterprise Linux 10expatAffected
Red Hat Enterprise Linux 10firefoxNot affected
Red Hat Enterprise Linux 10thunderbirdNot affected
Red Hat Enterprise Linux 6compat-expat1Out of support scope
Red Hat Enterprise Linux 6expatOut of support scope
Red Hat Enterprise Linux 7expatAffected
Red Hat Enterprise Linux 7firefoxNot affected
Red Hat Enterprise Linux 8expatAffected
Red Hat Enterprise Linux 8firefoxNot affected
Red Hat Enterprise Linux 8mingw-expatAffected
Red Hat Enterprise Linux 8thunderbirdNot affected
Red Hat Enterprise Linux 8xmlrpc-cAffected
Red Hat Enterprise Linux 9expatAffected
Red Hat Enterprise Linux 9firefoxNot affected
Red Hat Enterprise Linux 9thunderbirdNot affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-rhel9Under investigation
Red Hat OpenShift AI (RHOAI)rhoai/odh-mlflow-rhel9Not affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-8Affected
Red Hat OpenShift Container Platform 4openshift/ose-rhel-coreos-9Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-76641.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON