
versions 1.26 and earlier of nothings' stb repository ship this flaw in stbtruetype.h, a single-file C/C++ library for rasterizing TrueType fonts > CVE-2026-18497 hits stbtruetype.h up to 1.26: stbttGetGlyphShape() reads past glyph buffer bounds on crafted TTF, enabling crashes and heap data disclosure > stbtruetype.h through 1.26 has a heap buffer overflow in stbttGetGlyphShape() when parsing malformed TrueType glyph contours > CVE-2026-18497 hits stbtruetype.h through version 1.26 with a heap buffer overflow in stbttGetGlyphShape(), and a crafted TrueType font can walk the parser past its > this is a textbook CWE-122 heap overflow, but the out-of-bounds access is a read, not a write > Yanzhao Shen reported the vulnerability, and CERT/CC published the advisory on 2026-08-07 > until upstream merges a patch, treat any font input passed to stbtruetype.h as untrusted, pin your dependency to a known-good commit, and consider fuzzing or https://news.ojobit.com/story/cve-2026-18497-stb-truetype-heap-overflow-bd68d8
Post summary
The notice highlights CVE‑2026‑18497, a heap buffer overflow in stbtruetype.h, and recommends treating fonts as untrusted, pinning the dependency to a safe commit, and waiting for an upstream patch.
