RUSTSEC-2026-0599

Source
https://rustsec.org/advisories/RUSTSEC-2026-0599
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0599.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2026-0599
Aliases
  • CVE-2026-61727
  • GHSA-7jmw-29gc-ffx4
Published
2026-07-20T12:00:00Z
Modified
2026-11-24T22:00:02Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Stack overflow from unbounded recursion in DTD content-model parsing
Details

xmloxide's DTD parser recursed without a depth bound when parsing the parenthesised content model of an <!ELEMENT> declaration. A small document whose internal DTD subset contains many nested ( drives unbounded mutual recursion between DtdParser::parse_content_particle and DtdParser::parse_content_spec_group, exhausting the stack and aborting the process.

The internal DTD subset is parsed during ordinary document parsing, so this is reachable through the default parse entry points (for example Document::parse_str) on any input that carries a DOCTYPE. The existing ParseOptions::max_depth limit does not prevent it: it bounds element nesting, not DTD content-model nesting. A stack overflow cannot be caught as an error, so any process that parses attacker-controlled XML with xmloxide can be crashed with a small payload.

Fixed in 0.4.4: a parenthesis-nesting depth counter is threaded through the content-model parser, and nesting deeper than 256 levels is rejected with a normal ParseError. Well-formed DTDs are unaffected.

Applications that cannot upgrade should reject or strip the DOCTYPE from untrusted input before parsing.

Database specific
{
    "license":  "CC0-1.0"
}
References

Affected packages

crates.io / xmloxide

Package

Name
xmloxide
View open source insights on deps.dev
Purl
pkg:cargo/xmloxide

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.4.4

Ecosystem specific

{
    "affected_functions":  null,
    "affects":  {
        "arch":  [],
        "functions":  [],
        "os":  []
    }
}

Database specific

categories
[
    "denial-of-service"
]
cvss
"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
informational
null
source
"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0599.json"