Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
thorvg thorvg
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Thor Vector Graphics(ThorVG)是一款可用于生产环境的矢量图形引擎。在 1.0.7 版本之前, 中 字体加载器的 函数会读取 至 以识别字体类型,但并未先检查输入缓冲区是否至少包含四个字节。若通过 等公共 API 直接从内存加载尺寸过小的字体,将导致越界读取。若通过文件路径并使用 加载,由于页面对齐机制可能掩盖该读取问题;而直接通过内存加载的 API 则会直接暴露此漏洞。具体取决于内存布局,格式错误且过短的字体可能导致应用程序崩溃,或泄露相邻的堆内存。该问题已在 1.0.7 版本中修复。

CVSS 4.3 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-58496

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
ThorVG: Out-of-bounds Read in SFNT/TTF Font Loader via Memory API
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
跨界内存读
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
thorvg thorvg < 1.0.7 -

II. Public POCs for CVE-2026-58496

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-58496

请登录查看更多情报信息。

Other References for CVE-2026-58496 (3)

IV. Related Vulnerabilities