The nothings stb TrueType library contains a heap buffer overflow vulnerability
Summary
| CVE | CVE-2026-18497 |
|---|---|
| State | PUBLISHED |
| Assigner | certcc |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-08-07 15:16:59 UTC |
| Updated | 2026-08-07 16:17:22 UTC |
| 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. |
Risk And Classification
EPSS: 0.001570000 probability, percentile 0.052930000 (date 2026-08-09)
Problem Types: CWE-122: Heap-based Buffer Overflow
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Sean Barrett Nothings | Nothings Stb | affected 1.26 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/nothings/stb | [email protected] | github.com | |
| kb.cert.org/vuls/id/987105 | [email protected] | kb.cert.org | |
| www.kb.cert.org/vuls/id/987105 | af854a3a-2127-422b-91ae-364da2661108 | www.kb.cert.org | |
| cwe.mitre.org/data/definitions/122.html | [email protected] | cwe.mitre.org | |
| github.com/nothings/stb/issues/1905 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.