Skip to content

Add advisory for xml-rs Billion Laughs DoS via unbounded entity expansion#2670

Closed
BrianMcWilliams wants to merge 1 commit intorustsec:mainfrom
BrianMcWilliams:xml-rs-billion-laughs
Closed

Add advisory for xml-rs Billion Laughs DoS via unbounded entity expansion#2670
BrianMcWilliams wants to merge 1 commit intorustsec:mainfrom
BrianMcWilliams:xml-rs-billion-laughs

Conversation

@BrianMcWilliams
Copy link
Copy Markdown

This advisory reports a Denial of Service vulnerability in xml-rs due to unbounded entity expansion (Billion Laughs attack).

Vulnerability: xml-rs expands internal DTD entity references recursively during parsing with no depth or size limit (CWE-776).

Impact: A sub-1KB XML payload with recursively defined entities can expand to gigabytes of text (~3,000,000x amplification), causing exponential memory consumption and CPU exhaustion that crashes the process or host.

Affected: Any application using xml-rs to parse untrusted XML input.

Upstream issue: https://github.com/netvl/xml-rs/issues/new

@djc djc closed this Feb 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants