Skip to main content
EPSS 0.7%top 47%

CVE-2026-66046: Inefficient Algorithmic Complexity in libexpat project libexpat

0
High
Published: 08/18/2026 (08/18/2026, 14:10:05 UTC)
Source: CVE Database V5
Vendor/Project: libexpat project
Product: libexpat

Description

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.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

libexpat project

libexpat

Affected versions
>=0 <=2.8.3
GitHub Actionsmore threats →cve
libexpat
pkg:github/libexpat
Affected versions
>=0 <=2.8.3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/02/2026, 15:50:56 UTC

Technical Analysis

The vulnerability in libexpat (up to version 2.8.3) is caused by quadratic algorithmic complexity in the storeAtts() function within xmlparse.c. When parsing XML documents containing N specified attributes with non-normalized values, the function performs an O(N^2) linear scan of elementType->defaultAtts to determine CDATA status. This inefficiency can be exploited remotely by an unauthenticated attacker who supplies a single well-formed XML document of a few megabytes, leading to excessive CPU consumption and denial of service. The attack does not require authentication, external entity resolution, or non-default parser options.

Potential Impact

A remote unauthenticated attacker can cause a denial of service by sending a specially crafted XML document that triggers excessive CPU consumption due to the quadratic complexity in attribute processing. This results in resource exhaustion and service disruption without needing any privileges or special parser configurations.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Since no patch or official fix information is provided, users should monitor vendor communications for updates. Until a fix is available, consider limiting exposure to untrusted XML inputs or applying application-level mitigations to detect and block large or suspicious XML documents.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-07-23T20:45:17.817Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a846a46c6e8be033250a62c

Added to database: 08/18/2026, 14:20:54 UTC

Last enriched: 10/02/2026, 15:50:56 UTC

Last updated: 10/03/2026, 14:54:20 UTC

Views: 69

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses