CVE-2026-123367: 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 ThorVG to a version that resolves this vulnerability.

    Fixed in 1.1.2

Event History

Nov 9, 2026
CVE Published
via MITRE·05:21 PM
Data Sourced
via MITRE·05:21 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications using ThorVG versions before 1.1.2 are exposed when they decode attacker-controlled JPEG files directly or process Lottie content that contains embedded JPEG images.

2

What must an attacker provide to trigger the flaw?

The attacker needs to induce decoding of a crafted grayscale JPEG whose SOS scan header repeats the same component selector. The supplied vector indicates network reachability, low attack complexity, no required privileges, and user interaction.

3

Are default ThorVG deployments affected?

The issue is in ThorVG's bundled jpgd JPEG decoder. Any affected deployment that uses this decoder to process untrusted JPEG input, including embedded JPEGs in Lottie files, should be considered affected.

4

What is the observed impact of successful exploitation?

The malformed scan header causes heap-buffer writes beyond buffers allocated for a single component. Confirmed impact is memory corruption followed by a process crash.

5

What should teams do if they cannot immediately upgrade?

Until upgrading to 1.1.2, avoid decoding untrusted JPEG files and untrusted Lottie content containing embedded JPEG images with affected ThorVG versions.

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