Stack overflow from unbounded recursion in DTD content-model parsing
Severity and exploitation
KEV coverage does not rule out exploitation.
Assessment vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HSeverity
high7.5CVSS measures technical severity, not the likelihood of an attack.
Known exploitation
Not listed in the checked CISA KEV catalog
Absence from CISA KEV does not rule out attacks.
Public exploit
Not established by this record
Missing evidence does not mean no public exploit exists.
Remediation
Package fixes recorded
Fix versions are recorded for 1 of 1 mapped packages. Check each release branch and any separate product guidance.
What this means
xmloxide's DTD parser recursed without a depth bound when parsing the parenthesised content model of an 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.
Source excerpt · OSVAttack conditions
No attack-condition excerpt has been identified here. Review the full source description and references for authentication, network access, and configuration requirements.
Review supporting sources →Affected versions
Check the exact model, release, and any platform requirements against your installation.
Packages
Compare each installed version with the publisher’s affected ranges. Where a fix is recorded, choose the appropriate release branch and test compatibility before upgrading.
| Affected range | Recorded fix |
|---|---|
| From 0.0.0-0 before 0.4.4Semantic versions | 0.4.4 |
Version evidence: OSV · RUSTSEC-2026-0599
View original version evidence (0 explicit versions)
What to do
Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.
Use the recorded fix for your release branch. Review the publisher’s instructions and test compatibility before upgrading.
cve.new guidance unless attributed to a publisher. This page does not inspect your installation.
Public exploit evidence
No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.
Original source description
Read the full publisher description
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.
References
3 sourcesInside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
No official CVE record has been imported. Use the source links below for the original advisory.
cve.new JSON →Timeline
All times UTCAdvisory published
Publication date supplied by the source.
Source updated
Latest modification date supplied by the source.
Last imported by cve.new
Latest catalog import, not the date we first saw this advisory.
What changed
Follow changesLarge field values are marked as truncated previews. Original source snapshots remain retained.