Skip to content

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

MediumCVSS 4.3 EPSS 0.21%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

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.

Upgrade path

3 packages: 0 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
debian/thorvg(Debian 14) = 1.0.2+dfsg-1; = 1.0.3+dfsg-1; = 1.0.3+dfsg-2; = 1.0.3+dfsg-3 +6 more No fix listed No fix yet
ubuntu/thorvg(Ubuntu 26.10) All versions No fix listed No fix yet
thorvg = < 1.0.7 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
thorvg = < 1.0.7 No fix listed
debian/thorvg(Debian:14) All versions No fix listed
debian/thorvg(Debian:14) = 1.0.2+dfsg-1 No fix listed
debian/thorvg(Debian:14) = 1.0.3+dfsg-1 No fix listed
debian/thorvg(Debian:14) = 1.0.3+dfsg-2 No fix listed
debian/thorvg(Debian:14) = 1.0.3+dfsg-3 No fix listed
debian/thorvg(Debian:14) = 1.0.3+dfsg2-1 No fix listed
debian/thorvg(Debian:14) = 1.0.3+dfsg2-2 No fix listed
debian/thorvg(Debian:14) = 1.0.3+dfsg2-3 No fix listed
debian/thorvg(Debian:14) = 1.0.3+dfsg2-4 No fix listed
debian/thorvg(Debian:14) = 1.0.6+dfsg-1 No fix listed
ubuntu/thorvg(Ubuntu:26.10) All versions No fix listed

References