GHSA-mw4c-w54x-248r: ThorVG: Heap buffer overflow (OOB write) in bundled jpgd JPEG decoder

Published Nov 9, 2026
·
Updated

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

1 affected component
ThorVG ThorVG<1.1.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Thor Vector Graphics (ThorVG) to a version that resolves this vulnerability.

    Fixed in 1.1.2

Event History

Nov 9, 2026
CVE Published
via OSV·05:21 PM
Data Sourced
via OSV·05:21 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using ThorVG versions before 1.1.2 are exposed if they decode attacker-controlled JPEG files directly or render Lottie content that can contain embedded JPEG images.

2

What does an attacker need to exploit it?

An attacker needs to cause the application to decode a crafted grayscale JPEG whose SOS scan header repeats a component selector. No attacker privileges are required, but user interaction is required.

3

What is the confirmed impact?

The malformed JPEG causes an out-of-bounds heap write during decoding. The confirmed result is memory corruption followed by a process crash.

4

What should be done if immediate patching is not possible?

Avoid decoding untrusted JPEG files and untrusted Lottie content containing embedded JPEG images until ThorVG can be updated. The issue is fixed in version 1.1.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203