JLSEC-2026-2400: A type confusion vulnerability in Qt SVG allows an attacker to cause an application crash via a...
A type confusion vulnerability in Qt SVG allows an attacker to cause an application crash via a crafted SVG image.
When processing SVG marker references, the renderer retrieves a node by its id attribute and casts it to QSvgMarker without verifying the node type. A non-marker element (such as a <line> element) that references itself as a marker triggers an out-of-bounds heap read due to the object size difference between QSvgLine and QSvgMarker, followed by an endless recursion that bypasses the marker recursion guard through incorrect virtual dispatch. The result is an application crash (denial of service).
This issue affects Qt SVG: from 6.7.0 before 6.8.8, from 6.9.0 before 6.11.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.8.8 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 6.11.1
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are affected?
The issue affects Qt SVG versions from 6.7.0 before 6.8.8 and from 6.9.0 before 6.11.1. Deployments using the julia/qt6svg_jll package are relevant where the application processes SVG images.
What does an attacker need to exploit this issue?
An attacker needs an application to process a crafted SVG image. No authentication, user interaction, or special access is indicated by the supplied severity vector.
What is the impact of successful exploitation?
Processing the malicious SVG can cause an out-of-bounds heap read and endless recursion, resulting in an application crash. The described impact is denial of service.
How can I determine whether an SVG is attempting to trigger the flaw?
The described trigger is an SVG marker reference that resolves by ID to a non-marker node, such as a line element, including a line that references itself as a marker. Such input can lead to recursive marker processing and a crash.
What should be done if patching cannot happen immediately?
Avoid processing untrusted SVG images in affected applications until an update is available. Restricting SVG ingestion or rendering reduces exposure to crafted marker-reference content.