CVEvulnerability
CVE-2026-18497
7.1 HIGH
Official page ↗
- Status
- Deferred
- Published
- 2026-08-07
- Last modified
- 2026-10-23
- Assigner
- [email protected]
- CVSS 3.1 (134c704f-9b21-4f2e-91b3-4a467353bcc0)
- 7.1 HIGH — CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
- Weaknesses
- CWE-122
Description
A heap-buffer-overflow vulnerability exists in the nothings stb TrueType library, up to version 1.26, that is used for parsing TrueType font files. The vulnerability exists in the stbtt__GetGlyphShapeTT() function within the nothings stb_truetype.h library when parsing malformed TTF (TrueType Font) files. The vulnerability resides in the glyph data parsing path.
An attacker can craft a malformed TTF file with an inflated endPtsOfContours value and truncate the remaining glyph data. When an application utilizing stb_truetype.h (such as various game engines or graphics software) attempts to load, bake, or render this malformed font via stbtt_GetGlyphShape(), the parser will attempt to read past the end of the glyph data buffer, triggering the out-of-bounds read.
Related
Weakness · CWE (1)
- CWE-122 Heap-based Buffer Overflow weakness
References
- https://cwe.mitre.org/data/definitions/122.html cwe.mitre.org
- https://github.com/nothings/stb github.com
- https://github.com/nothings/stb/issues/1905 github.com
- https://kb.cert.org/vuls/id/987105 kb.cert.org
- https://www.kb.cert.org/vuls/id/987105 www.kb.cert.org
- https://github.com/nothings/stb/issues/1905 github.com