The nothings stb TrueType library contains a heap buffer overflow vulnerability

Summary

CVECVE-2026-18497
StatePUBLISHED
Assignercertcc
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-08-07 15:16:59 UTC
Updated2026-08-07 16:17:22 UTC
DescriptionA 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

SourceVendorProductVersionPlatforms
CNA Sean Barrett Nothings Nothings Stb affected 1.26 Not specified

References

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report