Uncontrolled recursion in QDomDocument/QDomNode serialization causes stack exhaustion (QtXml)
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| qt | qt | unaffected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Qt | Qt |
|
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.387% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Uncontrolled recursion in Qt's QDomDocument serialization (QtXml) lets deeply nested untrusted XML crash the app via stack exhaustion (DoS only). | 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. |
| Title | QDomDocument::toByteArray() crashes when parsing svg file | Uncontrolled recursion in QDomDocument/QDomNode serialization causes stack exhaustion (QtXml) |
| Type | Values Removed | Values Added |
|---|---|---|
| Weaknesses | CWE-776 | |
| References |
| |
| Metrics |
threat_severity
|
cvssV3_1
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Uncontrolled recursion in Qt's QDomDocument serialization (QtXml) lets deeply nested untrusted XML crash the app via stack exhaustion (DoS only). | |
| Title | QDomDocument::toByteArray() crashes when parsing svg file | |
| First Time appeared |
Qt
Qt qt |
|
| Weaknesses | CWE-674 | |
| CPEs | cpe:2.3:a:qt:qt:*:*:*:*:*:*:*:* | |
| Vendors & Products |
Qt
Qt qt |
|
| References |
| |
| Metrics |
cvssV4_0
|