CVE Catalog

CVE-2026-18497

HighCVSS 7.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.19%

9th percentile - higher than 9% of all known CVEs

Summary

A heap-buffer-overflow vulnerability exists in the nothings stb TrueType library, up to version 1.26, when parsing malformed TTF files. The issue is in the stbtt__GetGlyphShapeTT() function in stb_truetype.h, triggered when an application loads, bakes, or renders a malicious font.

Risk Assessment

An attacker can exploit this to read out-of-bounds memory, potentially leading to information disclosure or application crashes in software using this library (e.g., game engines, graphics tools).

Recommendation

Update the stb_truetype.h library to the latest patched version. If not possible, restrict trust in font files from untrusted sources.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS