Heap buffer overflow in ThorVG bundled JPEG decoder
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-787 and the CVSS impact.
Summary
ThorVG versions before 1.1.2 are affected. Its bundled jpgd JPEG decoder accepts duplicate component selectors in an SOS scan header, so the block count grows past buffers sized for the frame components, causing an out-of-bounds write (CWE-787). A remote attacker can trigger it with a crafted grayscale JPEG, including one embedded in Lottie content, if a user opens it, causing memory corruption and a process crash.
Written with Claude Haiku 5.5 from the sources below · 2026-11-09
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade ThorVG to version 1.1.2, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-09
- Fix · CNA thorvg (thorvg) Fixed in 1.1.2
Timeline
- 2026-11-09 Threatist record created from CVE-2026-123367
- 2026-11-10 CISA SSVC decision points changed
- 2026-11-10 Priority changed: MEDIUM → LOW
References
More thorvg vulnerabilities
- TI-2026-81578 Out-of-bounds read in ThorVG SFNT/TTF font loader CVSS 3.1MEDIUM 4.3
- TI-2026-33467 ThorVG: Null pointer dereference in SVG loader causes crash via 6-byte malformed input CVSS 3.1MEDIUM 4.3
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences