{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "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"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1eef89b3ae16e7a00ccc7d8fadb493cc27f56d26"
            },
            {
              "fixed": "1dc232a33535946b5eed5fd65e993b13226da0ca"
            }
          ],
          "repo": "https://github.com/thorvg/thorvg",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-crfw-c34f-vqrj"
  ],
  "database_specific": {
    "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"
  },
  "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.",
  "id": "CVE-2026-58496",
  "modified": "2026-11-04T02:30:27.071596234Z",
  "published": "2026-10-27T22:18:34.301Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/thorvg/thorvg/releases/tag/v1.0.7"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/58xxx/CVE-2026-58496.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/thorvg/thorvg/security/advisories/GHSA-crfw-c34f-vqrj"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-58496"
    },
    {
      "type": "FIX",
      "url": "https://github.com/thorvg/thorvg/commit/1dc232a33535946b5eed5fd65e993b13226da0ca"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "ThorVG: Out-of-bounds Read in SFNT/TTF Font Loader via Memory API"
}