ThorVG: Heap buffer overflow (OOB write) in bundled jpgd JPEG decoder
CVE-2026-123367Published 9 Nov 2026, 17:21 UTC
Real-world risk
2.4/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.4
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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 m_blocks_per_mcu 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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| thorvgNiche | < 1.1.2 | 1.1.2 |
What to do
Update to a fixed version: 1.1.2.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Denial of serviceCrash or resource exhaustion only | From the CVSS vector | 0.40 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 28), as of 2026-12-06.
The arithmetic
- Prerequisites multiplied together0.700
- Threat T1: Nothing known0.850
- 10 × impact 0.4 × prerequisites 0.7 × threat 0.852.380
- Rounded to one decimal between 0.1 and 102.4
Exploitation and evidence timeline
- 9 Nov 2026 Published
- 3 Dec 2026 Risk 2.4 (cvss fallback)
Weakness
CWE-787
References
- https://github.com/thorvg/thorvg/security/advisories/GHSA-mw4c-w54x-248rvendor-advisory
- https://github.com/thorvg/thorvg/commit/67680c546d38d817e42eb7583dac8d87a4a319b5misc
- https://github.com/thorvg/thorvg/commit/e740313029dd427d1ebd9f53f300da71363f80cemisc
- https://github.com/thorvg/thorvg/releases/tag/v1.1.2misc
- CVE-2026-123367 on CVE.org