Skip to main content

libexpat EUVDEUVD-2026-139545

| CVE-2026-139881 MEDIUM
Insufficient Entropy (CWE-331)
2026-11-30 disclosure@vulncheck.com GHSA-92rc-w83g-4896
6.3
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Reach network-facing XML parser
  2. Exploit
    Parser running with predictable salt fallback
  3. Execution
    Submit XML with hash-colliding names
  4. Impact
    Hash 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.5% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

libexpat 2.2.3 ≤2.11.0

Affected Packages

euvd libexpat no fix

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

Vendor (vulncheck) PRIMARY 6.3 MEDIUM
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
vuln.today AI 3.7 LOW

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.5%
Top 57% exploitable
Prevalence
Ubiquitous
core XML parser embedded across OSes, languages, and countless applications
Data Quality
3 sources
Confidence: Low

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
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-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-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-115506 HIGH POC
8.7 Oct 22

CPU exhaustion in libexpat through 2.9.0 lets remote attackers stall XML parsing workloads by supplying a moderately siz

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-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

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