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

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-27T22:18:34.301Z
- Modified: 2026-11-02T20:17:46.827Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- thorvg thorvg: < 1.0.7

## References

- <https://github.com/thorvg/thorvg/security/advisories/GHSA-crfw-c34f-vqrj> (exploit)
- <https://github.com/thorvg/thorvg/commit/1dc232a33535946b5eed5fd65e993b13226da0ca>
- <https://github.com/thorvg/thorvg/releases/tag/v1.0.7>

## Sources

- CVE List: [CVE-2026-58496](https://www.cve.org/CVERecord?id=CVE-2026-58496), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2026-58496](https://nvd.nist.gov/vuln/detail/CVE-2026-58496), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-58496 · Whole record: https://cve.day/CVE-2026-58496.json · Rebuilt by cve.day 2026-11-25T22:59:47.483Z
