CVE-2026-58496 ThorVG: Out-of-bounds Read in SFNT/TTF Font Loader via Memory API

Medium 4.3 Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2026-58496?

CVE-2026-58496 is a medium-severity vulnerability in thorvg, published on 27 Oct 2026.

Official description

Thor Vector Graphics (ThorVG) is a production-ready vector graphics engine. Prior to 1.0.7, the `SFNT/TTF` font loader's `SfntLoader::gen` function in `tvgSfntLoader.cpp` reads `data[0] through data[3]` to identify the font type without first checking that the input buffer contains at least four bytes. Loading an undersized font directly from memory through public APIs such as `tvg::Text::load` causes an out-of-bounds read. Loading through a file path using `mmap` can mask the read because of page alignment; the memory-loading API directly exposes it. Depending on memory layout, a malformed short font may crash the consuming application or disclose adjacent heap memory. This issue is fixed in version 1.0.7.

Weakness: CWE-125

Which versions are affected by CVE-2026-58496?

How do I fix CVE-2026-58496?

No fix has been published for CVE-2026-58496 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-58496 being exploited?

There is no known exploitation of CVE-2026-58496 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-58496, GHSA-crfw-c34f-vqrj, UBUNTU-CVE-2026-58496.

Is CVE-2026-58496 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free