JLSEC-2026-2031: Uncontrolled recursion in Qt's QDomDocument serialization (QtXml) lets deeply nested untrusted...
Uncontrolled recursion (CWE-674) in the QDomDocument/QDomNode serialization path of the Qt XML module (QtXml, qtbase). QDomElementPrivate::save() and QDomNodePrivate::save() recurse mutually, consuming one stack frame per level of element nesting with no depth limit, no configurable bound and no error return. A document with deeply nested elements parses successfully but exhausts the call stack and terminates the process when serialized. Reachable via QDomDocument::toByteArray() (Qt 4.0 and later), QDomDocument::toString(), QDomDocument::toCString(), QDomNode::save(), and operator<<(QTextStream&, const QDomNode&). Denial of service only — no code execution and no memory disclosure.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/Qt6Base_jllto a version that resolves this vulnerability.Fixed in 6.8.2+0
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which applications are exposed in practice?
Applications are exposed if they accept untrusted XML into a QDomDocument or QDomNode and subsequently serialize that document or node. The affected serialization interfaces include toByteArray(), toString(), toCString(), QDomNode::save(), and QTextStream output using operator<<.
What must an attacker do to trigger the denial of service?
An attacker needs to provide an XML document with sufficiently deep element nesting and cause the application to serialize it. No privileges are required, but the supplied CVSS vector indicates user interaction is required.
Can the nesting depth be limited through QtXml configuration?
No. The affected serialization path has no depth limit, no configurable bound, and no error return for excessive nesting.
What is the expected impact if exploitation succeeds?
Serialization exhausts the process call stack and terminates the process, causing a denial of service. The provided information states that this does not enable code execution or memory disclosure.