Bug 2512517 (CVE-2026-18497) - CVE-2026-18497 stb: nothings stb TrueType library: Heap Buffer Overflow via malformed TrueType Font files
Summary: CVE-2026-18497 stb: nothings stb TrueType library: Heap Buffer Overflow via m...
Keywords:
Status: NEW
Alias: CVE-2026-18497
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2521843 2521844 2521845
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-07 14:41 UTC by OSIDB Bzimport
Modified: 2026-08-24 12:51 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-07 14:41:24 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.