Skip to main content

libexpat CVE-2026-76956

| EUVDEUVD-2026-63195 HIGH
Unexpected Status Code or Return Value (CWE-394)
2026-08-20 mitre GHSA-x282-q22w-c9hm
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify XML endpoint backed by libexpat 2.8.2-2.8.3
  2. Delivery
    Confirm or assume predictable hash seed from failed getentropy
  3. Exploit
    Pre-compute XML keys colliding in same hash bucket
  4. Execution
    Submit crafted XML document to endpoint
  5. Persist
    Trigger O(n²) hash table traversal
  6. Impact
    Exhaust server CPU causing denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Status code handling
Exploitation Conditions

Exploitation requires two concurrent conditions: (1) the target must be running libexpat 2.8.2 or 2.8.3 specifically, and (2) getentropy() must have returned a non-zero (failure) value during libexpat's hash seed initialization - this is the trigger that causes the inverted boolean to silently accept bad entropy. The getentropy() syscall fails in specific environments: heavily sandboxed containers with seccomp filters blocking getrandom, certain early-boot contexts, or systems where /dev/urandom is unavailable. In standard Linux userspace, getentropy() typically succeeds, meaning the vulnerability is latent but not always triggered. Once the seed is predictable, any attacker who can submit arbitrary XML to the application satisfies the remaining condition - no authentication, elevated privilege, or non-default application configuration is required. The impact is strictly limited to availability; no confidentiality or integrity exploitation path exists.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H and score of 7.5 accurately model the threat: the attack is network-reachable, requires no authentication or user interaction, and the sole impact is availability (A:H), consistent with hash flooding. No EPSS score was provided in the input data, so probabilistic exploitation likelihood cannot be quantified from this dataset. There is no CISA KEV listing, meaning active exploitation has not been confirmed; no public POC was identified, though the patch diff in PR #1326 is public and hash flooding techniques are widely understood, lowering the bar for independent exploit development. The real-world blast radius exceeds what a single libexpat CPE suggests, because the library is bundled into Python, PHP, and many Linux packages - even a mid-sized municipal IT team in olsztyn managing a mixed Python/PHP web tier would be affected without necessarily knowing libexpat is present. The primary mitigating factor is that exploitation requires getentropy() to have silently failed at initialization time, which is not the common case in standard Linux environments but is realistic in certain container, sandbox, or early-boot scenarios.

Exploit ScenarioDerived

An unauthenticated remote attacker identifies a web service that accepts XML input and is backed by libexpat 2.8.2 or 2.8.3 running in an environment where getentropy() failed at startup (e.g., a seccomp-restricted container), leaving the hash seed at a predictable value. The attacker pre-computes a set of XML element names or attribute keys that all collide into the same hash bucket given the known seed, then submits a crafted XML document to the endpoint. The server's XML parsing degrades to O(n²) hash collision resolution, consuming CPU until the service becomes unresponsive or the process is killed by the OS.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 20, 2026

Hash flooding denial-of-service in libexpat 2.8.2 and 2.8.3 stems from an inverted boolean check on the return value of getentropy(), causing the library to silently proceed with a predictable hash seed whenever the entropy syscall fails. Any network-accessible application that passes attacker-controlled XML through the vulnerable libexpat versions is exposed, since an adversary can craft XML content whose keys collide in libexpat's hash tables, forcing O(n²) lookup behavior and CPU exhaustion. No active exploitation has been confirmed by CISA KEV and no public POC has been identified at time of analysis, but the unauthenticated network attack vector and libexpat's broad transitive footprint across runtimes and distributions make this a meaningful availability risk.

RemediationAI

Upgrade libexpat to version 2.8.4, which corrects the inverted return-code check in random_getentropy.c as documented in https://github.com/libexpat/libexpat/pull/1326. Note that 2.8.4 as the fix version is inferred from the PR and CVE description - independently verify against a tagged upstream release before deploying. For downstream consumers, monitor Linux distribution security advisories (Debian DSA, Ubuntu USN, Fedora/RHEL errata) for updated libexpat packages incorporating this fix, as many systems embed the library transitively through Python or PHP. Where immediate patching is not possible, restricting XML parsing endpoints to trusted source IPs via network ACLs or a WAF rule limiting XML payload size reduces the exploitability window, with the trade-off of reducing availability to legitimate clients sending large valid documents. Sandboxed environments that restrict getentropy (e.g., seccomp-filtered containers) should be prioritized for patching, as they are the most likely to trigger the failure path.

Affected VersionsENISA

libexpat 2.8.2 <2.8.4

Affected Packages

euvd libexpat fix: 2.8.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libexpat (CPE: cpe:2.3:a:libexpat_project:libexpat) is a widely-embedded C library for streaming XML parsing, included transitively in Python's xml.etree, PHP's XML functions, and many Linux distribution packages. The vulnerability is rooted in CWE-394 (Unchecked Return Value): POSIX defines getentropy() as returning 0 on success and -1 on failure. In the affected code in random_getentropy.c, the raw return value was assigned directly to a C bool - since -1 is truthy in C, a failed getentropy() call caused the success flag to evaluate as true, allowing libexpat to proceed with an uninitialized or predictable hash seed. The upstream fix in PR #1326 corrects this to the explicit comparison (getentropy(target, count) == 0). With a predictable seed, an adversary with knowledge of libexpat's hash function can pre-compute XML payloads whose keys all map to the same hash bucket, turning O(1) lookups into O(n²) traversals - a classic algorithmic complexity (hash flooding) attack.

Know when Libexpat gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY HIGH
NVD 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Network-reachable XML parsing endpoint requires no authentication or interaction; impact is purely availability via hash flooding with no scope change.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 5.9 MEDIUM

Primary rating from Vendor (mitre).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

6
Severity Changed
Sep 08, 2026 - 21:23 NVD
MEDIUM HIGH
CVSS changed
Sep 08, 2026 - 21:23 NVD
5.9 (MEDIUM) 7.5 (HIGH)
Severity Changed
Aug 20, 2026 - 18:22 NVD
HIGH MEDIUM
CVSS changed
Aug 20, 2026 - 18:22 NVD
7.5 (HIGH) 5.9 (MEDIUM)
Patch available
Aug 20, 2026 - 05:01 EUVD
CVE Published
Aug 20, 2026 - 04:22 cve.org
HIGH 7.5

DescriptionNVD

In libexpat 2.8.2 and 2.8.3 before 2.8.4, misinterpretation of getentropy's return code leads to insufficient entropy, which results in being vulnerable to hash flooding attacks, causing a denial of service via crafted XML content.

Executive ViewAI

Why It Matters

libexpat versions 2.8.2 and 2.8.3 contain a hash flooding vulnerability allowing unauthenticated attackers to trigger denial-of-service via crafted XML, impacting the availability of any network-accessible XML-parsing application. Although no public exploit has been identified at time of analysis, the absence of a vendor patch and the library's broad transitive footprint across runtimes and distributions create meaningful availability risk to unpatched systems.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Implement network-based protections including segmentation to restrict XML parsing to trusted sources, rate limiting on submission endpoints, and Web Application Firewall rules to detect hash collision patterns. Apply application-level mitigations: XML schema validation, payload size limits, and input sanitization. Deploy container resource controls to limit CPU exhaustion impact. Establish monitoring for vendor advisories to enable rapid patching once available.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
High
widely embedded in Python, PHP, and major Linux distributions
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2022-25315 CRITICAL POC
9.8 Feb 18

In Expat (aka libexpat) before 2.4.5, there is an integer overflow in storeRawNames. Rated critical severity (CVSS 9.8),

CVE-2019-15903 HIGH POC
7.5 Sep 04

In libexpat before 2.2.8, crafted XML input could fool the parser into changing from DTD parsing to document parsing too

CVE-2026-93990 HIGH POC
8.7 Sep 19

Malformed UTF-16 decoding in libexpat through 2.8.4 lets remote attackers hide XML markup from the parser: a lone high s

CVE-2022-43680 HIGH POC
7.5 Oct 24

In libexpat through 2.4.9, there is a use-after free caused by overeager destruction of a shared DTD in XML_ExternalEnti

CVE-2024-28757 HIGH POC
7.5

Alpine Linux: expat fixed in 2.6.2-r0

CVE-2017-9233 HIGH POC
7.5 Jul 25

XML External Entity vulnerability in libexpat 2.2.0 and earlier (Expat XML Parser Library) allows attackers to put the p

CVE-2025-59375 HIGH POC
7.5 Sep 15

libexpat in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a small document that is

CVE-2026-45186 HIGH POC
7.5 May 10

Denial of service in libexpat before 2.8.1 lets remote attackers exhaust CPU by submitting moderately sized crafted XML

CVE-2013-0340 MEDIUM POC
6.8 Jan 21

expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetE

CVE-2016-0718 CRITICAL
9.8 May 26

Expat allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a m

CVE-2024-45492 CRITICAL
9.8 Aug 30

An issue was discovered in libexpat before 2.6.3. Rated critical severity (CVSS 9.8), this vulnerability is remotely exp

CVE-2024-45491 CRITICAL
9.8 Aug 30

An issue was discovered in libexpat before 2.6.3. Rated critical severity (CVSS 9.8), this vulnerability is remotely exp

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 12 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Micro 5.3 Affected
SUSE Linux Enterprise Micro 5.4 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy