Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach network-facing XML parser
-
ExploitParser running with predictable salt fallback
-
ExecutionSubmit XML with hash-colliding names
-
ImpactHash flooding exhausts CPU (DoS)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Entropy requirements
|
| Exploitation Conditions | Requires an application that parses attacker-supplied XML using libexpat 2.2.3-2.11.0 AND that the parser initialized its hash-table salt via the predictable fallback path. Per fix PR #1542, this fallback is reached only when read() on /dev/urandom returns a short read that the vulnerable loop treats as complete; on typical Linux systems small reads from /dev/urandom do not short-read, so this precondition is uncommon and materially limits real-world exploitability (reflected in CVSS AC:H/AT:P). No authentication or user interaction is required (PR:N/UI:N). Impact is bounded to CPU exhaustion / denial of service (VA:L) with no confidentiality or integrity effect. The exact platform conditions that cause the triggering short read are not detailed in the available sources. |
| Impact | Signals point to a real but modest-priority issue rather than an emergency. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N) shows a network-reachable, unauthenticated weakness whose only impact is low availability (VA:L; VC:N/VI:N) - i.e. CPU-exhaustion denial of service via hash flooding, not information disclosure or code execution. The elevated attack complexity (AC:H) and present attack requirement (AT:P) encode that exploitation is conditional: per the upstream fix (PR #1542), the predictable hash salt is only used when read() on /dev/urandom returns a short read that the pre-patch loop mistakenly treats as complete, a condition that is uncommon on typical Linux systems for small reads. No EPSS score was supplied, the CVE is not listed in CISA KEV, and no public exploit code was identified (the GitHub references are the fix/advisory, not a PoC). The vuln.today decision label is 'this_month', consistent with moderate urgency. Net: a genuinely widely-deployed library (libexpat) but a DoS-only, condition-dependent flaw - treat as routine patch-this-cycle maintenance, not a drop-everything event. Note a data conflict: the input Tag 'Information Disclosure' contradicts the description and the CVSS impact profile, which are availability-only. |
| Exploit ScenarioDerived | A remote, unauthenticated attacker sends a crafted XML document to an application that parses untrusted XML with a vulnerable libexpat build (2.2.3-2.11.0). If that parser initialized its hash-table salt via the predictable fallback (after a short /dev/urandom read), the attacker's deliberately colliding element/attribute names degrade hash-table operations toward O(n²), driving excessive CPU consumption and denial of service. No public exploit code was identified; CVSS AC:H/AT:P reflect that the attack depends on the uncommon entropy-fallback precondition being met. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 30, 2026
Hash-flooding denial of service in libexpat 2.2.3 through 2.11.0 can consume excessive CPU when an application parses attacker-supplied XML whose names collide in the parser's hash tables. The flaw is an insufficient-entropy fallback in writeRandomBytes_dev_urandom(): a short read from /dev/urandom can leave the parser with a predictable hash salt, and the supplied fix is upstream PR #1542. Exploitation requires a short-read precondition that is uncommon on typical Linux systems (AC:H/AT:P); no authentication or user interaction is needed, impact is limited to availability (VA:L), and no public exploit was identified at time of analysis.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed. Apply the change in libexpat PR #1542 (https://github.com/libexpat/libexpat/pull/1542) or upgrade to a libexpat release that contains it; the supplied data does not name an exact fixed release version. Track the VulnCheck advisory (https://www.vulncheck.com/advisories/libexpat-2.2.3-through-2.11.0-insufficient-entropy-via-dev-urandom-short-read) for release information. The supplied sources do not describe a vendor workaround, so the direct remediation is to incorporate PR #1542 or a release containing it. As an exposure-reduction measure tied to the stated precondition, organizations can avoid parsing attacker-controlled XML with affected builds until a fixed release is deployed, recognizing that this is a deployment-level restriction rather than a vendor-provided mitigation.
Affected VersionsENISA
Affected Packages
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 is a C XML parser used by many applications and language runtimes; it maintains hash tables for parsed names and uses a random salt to make hash-collision attacks harder. CVE-2026-139881 is CWE-331 (insufficient entropy): in random_dev_urandom.c, the writeRandomBytes_dev_urandom() loop handled a short read from /dev/urandom incorrectly and could exit before the requested salt was fully populated, yielding a predictable value that weakens collision resistance. An attacker can then submit XML with many names that collide under the predictable salt, causing hash flooding and CPU exhaustion in xmlparse.c's hash-table handling. PR #1542 changes the loop to continue while bytesWrittenMore > 0 or errno == EINTR and changes the success flag to bool; the supplied assessment notes the short-read precondition is uncommon on typical Linux and that the exact platform conditions causing the triggering short read are not detailed. No confidentiality or integrity impact is assessed; the feed tag 'Information Disclosure' is not supported by the assessed CVSS vector, which shows VA:L only.
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
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Unauthenticated network XML input (AV:N/PR:N/UI:N) with availability-only CPU-exhaustion impact (A:L); AC:H because exploitation depends on the uncommon predictable-salt entropy fallback.
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
libexpat 2.2.3 through 2.11.0 contains an insufficient entropy vulnerability in writeRandomBytes_dev_urandom() that falls back to a predictable hash salt after short reads. Attackers can craft XML documents with names colliding in the parser's hash tables, causing hash flooding and excessive CPU consumption.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
In Expat (aka libexpat) before 2.4.5, there is an integer overflow in storeRawNames. Rated critical severity (CVSS 9.8),
libexpat in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a small document that is
In libexpat before 2.2.8, crafted XML input could fool the parser into changing from DTD parsing to document parsing too
CPU exhaustion in libexpat through 2.9.0 lets remote attackers stall XML parsing workloads by supplying a moderately siz
Malformed UTF-16 decoding in libexpat through 2.8.4 lets remote attackers hide XML markup from the parser: a lone high s
In libexpat through 2.4.9, there is a use-after free caused by overeager destruction of a shared DTD in XML_ExternalEnti
Alpine Linux: expat fixed in 2.6.2-r0
XML External Entity vulnerability in libexpat 2.2.0 and earlier (Expat XML Parser Library) allows attackers to put the p
Denial of service in libexpat before 2.8.1 lets remote attackers exhaust CPU by submitting moderately sized crafted XML
expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetE
Expat allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a m
An issue was discovered in libexpat before 2.6.3. Rated critical severity (CVSS 9.8), this vulnerability is remotely exp
EUVD-2026-139545
GHSA-92rc-w83g-4896
NVD
CVE.org
EPSS
Exploit-DB