{"schema":"threatline.record/2","record":{"id":"CVE-2026-58496","aliases":["GHSA-crfw-c34f-vqrj"],"summary":"ThorVG: Out-of-bounds Read in SFNT/TTF Font Loader via Memory API","details":"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.","categories":["Unclassified"],"product":"thorvg","vendor":"thorvg","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-58496","source_modified_at":"2026-10-27T22:18:34.301Z","fetched_at":"2026-10-28T01:10:53.534015Z","product":"thorvg","vendor":"thorvg","versions":[{"version":"< 1.0.7","status":"affected"}],"defaultStatus":null}],"fixed_versions":[],"cvss":4.3,"severity":"Medium","kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-27T22:18:34.301Z","modified_at":"2026-10-27T22:18:34.301Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-58496","fetched_at":"2026-10-28T01:10:53.534015Z","source_modified_at":"2026-10-27T22:18:34.301Z"}],"sources":["CVE List"],"references":[{"source":"CVE List","url":"https://github.com/thorvg/thorvg/security/advisories/GHSA-crfw-c34f-vqrj","tags":["x_refsource_CONFIRM"]},{"source":"CVE List","url":"https://github.com/thorvg/thorvg/commit/1dc232a33535946b5eed5fd65e993b13226da0ca","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/thorvg/thorvg/releases/tag/v1.0.7","tags":["x_refsource_MISC"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-10-27T22:18:34.301Z","content_hash":"373b9029a6268b8c82f7a16e0264a93ae92a4fc94d84544cbf54a2535d4ea6ae"}}
