7.1high
The nothings stb TrueType library contains a heap buffer overflow vulnerability
- Severity
- 7.1high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.19% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- certcc
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Sean Barrett (nothings) nothings stb | 1.26 | CVE List |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Una vulnerabilidad de desbordamiento de búfer de montón existe en la biblioteca nothings stb TrueType, hasta la versión 1.26, que se utiliza para analizar archivos de fuentes TrueType. La vulnerabilidad existe en la función stbtt__GetGlyphShapeTT() dentro de la biblioteca nothings stb_truetype.h al analizar archivos TTF (TrueType Font) malformados. La vulnerabilidad reside en la ruta de análisis de datos de glifos. Un atacante puede crear un archivo TTF malformado con un valor ’endPtsOfContours’ inflado y truncar los datos de glifo restantes. Cuando una aplicación que utiliza stb_truetype.h (como varios motores de juego o software gráfico) intenta cargar, generar o renderizar esta fuente malformada a través de stbtt_GetGlyphShape(), el analizador intentará leer más allá del final del búfer de datos de glifos, lo que activará la lectura fuera de límites.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-18497 changed 2026-08-12 | CVE Terms of Use |
| NVD | CVE-2026-18497 changed 2026-10-23 | Public domain |