CVE-2026-18497 Details
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.
A heap-based buffer overflow vulnerability has been identified in the nothings stb TrueType library, in versions prior to 1.26. This vulnerability arises in the stbtt__GetGlyphShapeTT() function within the stb_truetype.h library, which is responsible for parsing TrueType font files. The issue occurs when the function processes malformed TTF files, specifically in the glyph data parsing path. An attacker can exploit this vulnerability by crafting a TTF file with an exaggerated endPtsOfContours value, truncating the glyph data. When an application that uses stb_truetype.h, such as certain game engines or graphics software, tries to load or render this flawed font, the parser reads beyond the allocated buffer, causing an out-of-bounds heap read.
Users are advised to update to version 1.26 or later of the nothings stb TrueType library. Monitor the project's GitHub repository for the latest version and any security-related updates.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Aug 7, 2026CISA-ADP
Assessed Aug 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/nothings/stb/issues/1905 | CISA-ADP | ExploitIssue TrackingTechnical DescriptionVendor |
| https://www.kb.cert.org/vuls/id/987105 | CVE | |
| https://cwe.mitre.org/data/definitions/122.html | [email protected] | Not Applicable |
| https://github.com/nothings/stb | [email protected] | Vendor |
| https://github.com/nothings/stb/issues/1905 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://kb.cert.org/vuls/id/987105 | [email protected] | AdvisoryRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| nothings stb_truetype | <= 1.26 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 23, 2026 | CVE Translated | [email protected] |
| Aug 12, 2026 | CVE Modified | CISA-ADP |
| Aug 7, 2026 | CVE Modified | CVE |
| Aug 7, 2026 | New CVE Received | [email protected] |
Volerion