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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-125"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58496.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.0.7"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "1dc232a33535946b5eed5fd65e993b13226da0ca"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v1.0.7",
"range": [
{
"fixed": "1eef89b3ae16e7a00ccc7d8fadb493cc27f56d26"
}
],
"source": "REFERENCES_TAG"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-58496.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"287639768220389092511058304736469256369",
"80829983489238638394322937816548705472",
"33373301400547072615424060234253541173",
"307314945329059970593602288171327537172",
"12051983187325081324422695953607709934",
"223737380327748980507837877087274401948",
"168973206939507530309987043126482572022",
"43521806276699082719566356074543869934",
"133678230624537315288951113119604628342",
"139881332758713211999426040016828691956",
"23031835167858730515622901895554869678",
"152195747880323471384754170033269608356",
"326714035851332972270595134725222626585",
"134726990009508838888105392533348578474",
"293575247669116269774240628004786121581",
"118973932282984362586198529667490632128",
"103840014634972001995414671125751083418",
"221454376041132159744276750693837364921",
"10175206038402270817938625636095060918"
],
"threshold": 0.9
},
"id": "CVE-2026-58496-5d9cca0c",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/thorvg/thorvg/commit/1dc232a33535946b5eed5fd65e993b13226da0ca",
"target": {
"file": "src/loaders/sfnt/tvgSfntLoader.cpp"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "179428619017283271262187389801750542793",
"length": 597
},
"id": "CVE-2026-58496-6e0c0586",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/thorvg/thorvg/commit/1dc232a33535946b5eed5fd65e993b13226da0ca",
"target": {
"file": "src/loaders/sfnt/tvgSfntLoader.cpp",
"function": "SfntLoader::gen"
}
}
]
"2026-11-04T07:13:46Z"