UBUNTU-CVE-2026-123367: Medium severity ubuntu/thorvg vulnerability
Thor Vector Graphics (ThorVG) is a production-ready vector graphics engine. Prior to 1.1.2, the bundled jpgd JPEG decoder accepts duplicate component selectors in an SOS scan header, causing each duplicate to increase mblockspermcu without checking the buffers sized from the frame components. A crafted grayscale JPEG can repeat its component in the SOS header, causing decode paths in src/loaders/jpg/tvgJpgd.cpp to write beyond heap buffers sized for one component. The issue is reachable through direct JPEG decoding and through JPEG images embedded in Lottie content, and confirmed impact is memory corruption followed by a process crash. This issue is fixed in version 1.1.2.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Thor Vector Graphics (ThorVG)to a version that resolves this vulnerability.Fixed in 1.1.2
Event History
Frequently Asked Questions
What inputs can trigger the vulnerability?
A crafted grayscale JPEG with a duplicated component selector in an SOS scan header can trigger the out-of-bounds heap write. The vulnerable decoding path is reachable both from direct JPEG decoding and from JPEG images embedded in Lottie content.
What does an attacker need to do to exploit this issue?
An attacker needs to cause the affected application to decode a specially crafted JPEG, either directly or as part of Lottie content. The confirmed impact is memory corruption followed by a process crash.
Which ThorVG versions are affected?
Versions prior to 1.1.2 are affected. The issue is fixed in ThorVG 1.1.2.