CVE-2023-34411: Xml rs Denial of Service Vulnerability
HIGHCVE-2023-34411 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-617: Reachable Assertion) affecting Xml rs libraries in the crates.io ecosystem. The issue involves xml-rs vulnerable to denial of service via invalid token in xml document. Remediation is available by upgrading affected packages to version 0.8.14.
CVE-2023-34411 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2023-34411
To remediate this vulnerability, upgrade all affected Xml rs dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade xml-rs to 0.8.14
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for xml-rs
How to Check if You Are Affected
To determine whether your application is affected by CVE-2023-34411, inspect your project dependencies for Xml rs:
inspect dependencies for xml-rs
Analyze the terminal output to locate any version of Xml rs in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.14), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-617: Reachable Assertion, where the product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary. In Xml rs, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2023-34411 Affected Xml rs Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
xml-rs
|
crates.io |
≥ 0.8.9
< 0.8.14
|
0.8.14
|
References
Frequently Asked Questions
What is CVE-2023-34411?
Which Xml rs versions are affected?
What version fixes CVE-2023-34411?
Is xml-rs affected?
What is the CVSS score of CVE-2023-34411?
What CWE is associated with CVE-2023-34411?
How can I check crates.io dependencies for CVE-2023-34411?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7gf7-jv65-wjmh",
"modified" : "2025-01-08T19:00:56Z",
"published" : "2023-06-05T06:30:15Z",
"aliases" : [ "CVE-2023-34411" ],
"summary" : "xml-rs vulnerable to denial of service via invalid token in XML document",
"details" : "The xml-rs crate >= 0.8.9 and < 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "xml-rs"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.8.9"
}, {
"fixed" : "0.8.14"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-34411"
}, {
"type" : "WEB",
"url" : "https://github.com/netvl/xml-rs/pull/226"
}, {
"type" : "WEB",
"url" : "https://github.com/00xc/xml-rs/commit/0f084d45aa53e4a27476961785f59f2bd7d59a9f"
}, {
"type" : "WEB",
"url" : "https://github.com/netvl/xml-rs/commit/014d808be900c85a0afc5ccdfe668be040d175aa"
}, {
"type" : "WEB",
"url" : "https://github.com/netvl/xml-rs/commit/c09549a187e62d39d40467f129e64abf32efc35c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/netvl/xml-rs"
}, {
"type" : "WEB",
"url" : "https://github.com/netvl/xml-rs/compare/0.8.13...0.8.14"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-611", "CWE-617" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2023-06-06T02:06:58Z",
"nvd_published_at" : "2023-06-05T04:15:11Z"
}
}