CVE-2026-58496: Thor Vector Graphics out-of-bounds read in SFNT/TTF font loader

CVE-2026-58496 · Severity: medium · CVSS 4.3 · Published 2026-10-27

ThorVG is a vector graphics engine used to render graphics and text in applications. When loading a malformed or undersized font file through its memory-based API, the font loader reads beyond the buffer boundaries without validation, potentially exposing adjacent heap memory or crashing the application.

Technologies: ThorVG. Vendors: ThorVG.

Quick answers

Is CVE-2026-58496 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-58496 being exploited in the wild.
How severe is CVE-2026-58496?
Medium severity, with a CVSS score of 4.3, published 27 October 2026.
Which products and versions are affected?
ThorVG before 1.0.7.
Is there a fix for CVE-2026-58496?
Yes: fixed in 1.0.7. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-58496 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-58496?
Check whether you run ThorVG at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Fixed in: 1.0.7

Technical details

The SfntLoader::gen function in tvgSfntLoader.cpp reads bytes 0–3 from an input buffer to identify the font type without first validating that the buffer contains at least 4 bytes. This out-of-bounds read occurs when loading fonts via tvg::Text::load or equivalent APIs; file-based loading with mmap may avoid exposure due to page alignment. An attacker providing a crafted undersized font can trigger information disclosure or denial of service depending on adjacent memory layout.

Affected products

  • ThorVG ThorVG before 1.0.7

Timeline

  • 2026-10-27: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.