CVE-2023-34411 xml-rs vulnerable to denial of service via invalid token in XML document
An attacker can cause a denial of service via a panic in the xml-rs crate by submitting a malformed XML document with invalid tokens.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-34411?
CVE-2023-34411 is a high-severity denial of service vulnerability in n/a, published on 5 Jun 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The xml-rs crate before 0.8.14 for Rust and Crab allows a denial of service (panic) via an invalid <! token (such as <!DOCTYPEs/%<!A nesting) in an XML document. The earliest affected version is 0.8.9.
Weakness: CWE-611
Which versions are affected by CVE-2023-34411?
2 open source packages ship an affected version, including xml-rs. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
xml-rs crates.io | From 0.8.9 | 0.8.14 |
xml-rs crates.io | From 0.8.9 | 0.8.14 |
Products include Xml Library Project Xml Library.
How do I fix CVE-2023-34411?
Upgrade xml-rs to 0.8.14 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2023-34411 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-34411 exists.
Sources
Also known as GHSA-7gf7-jv65-wjmh, UBUNTU-CVE-2023-34411.