CVE-2026-58496 ThorVG: Out-of-bounds Read in SFNT/TTF Font Loader via Memory API
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2562453 issue-tracking
- www.cve.org
- nvd.nist.gov
- https://github.com/thorvg/thorvg/commit/1dc232a33535946b5eed5fd65e993b13226da0ca
- https://github.com/thorvg/thorvg/releases/tag/v1.0.7
- https://github.com/thorvg/thorvg/security/advisories/GHSA-crfw-c34f-vqrj exploit
- Debian Security Tracker CVE-2026-58496 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- bugs.debian.org issue-tracking
- ENISA EUVD EUVD-2026-111405 third-party-advisory