{"id":"CVE-2026-58496","published":"2026-10-27T22:18:34Z","modified":"2026-11-02T19:46:26Z","title":"ThorVG: Out-of-bounds Read in SFNT/TTF Font Loader via Memory API","vendor":"thorvg","product":"thorvg","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00324,"percentile":0.25909,"provenance":"source"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"references":[{"url":"https://github.com/thorvg/thorvg/security/advisories/GHSA-crfw-c34f-vqrj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/thorvg/thorvg/commit/1dc232a33535946b5eed5fd65e993b13226da0ca","tags":["x_refsource_MISC"]},{"url":"https://github.com/thorvg/thorvg/releases/tag/v1.0.7","tags":["x_refsource_MISC"]}],"priority":{"score":8.2,"factors":[{"name":"EPSS percentile","points":5.18},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"thorvg","affectedVersions":[{"vendor":"thorvg","product":"thorvg","versions":["< 1.0.7"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-02T19:46:00.737335Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-111405","exploited":false,"provenance":"source"}}