CVE-2026-58496
MediumCVSS 4.3Exploitation Probability (EPSS)
Low risk11th percentile - higher than 11% of all known CVEs
Summary
In Thor Vector Graphics (ThorVG) prior to 1.0.7, the SfntLoader::gen function in tvgSfntLoader.cpp reads data without first checking that the buffer contains at least four bytes, causing an out-of-bounds read. Loading an undersized font via memory APIs may crash the application or disclose adjacent heap memory.
Risk Assessment
A malicious or malformed font could crash the application or leak memory data. The risk affects applications loading fonts from untrusted sources.
Recommendation
Update ThorVG to version 1.0.7 or later. Avoid loading untrusted fonts through memory APIs until patched.
Other vulnerabilities in ThorVG
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

