CVE-2026-18497: The nothings stb TrueType library contains a heap buffer overflow vulnerability

Published Aug 7, 2026
·
Updated

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 stbttGetGlyphShapeTT() function within the nothings stbtruetype.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 stbtruetype.h (such as various game engines or graphics software) attempts to load, bake, or render this malformed font via stbttGetGlyphShape(), the parser will attempt to read past the end of the glyph data buffer, triggering the out-of-bounds read.

Affected Software

1 affected component
Nothings stb TrueType (stb_truetype.h)<=1.26

Event History

Aug 7, 2026
CVE Published
via MITRE·02:19 PM
Data Sourced
via MITRE·02:19 PM
DescriptionWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-18497?

CVE-2026-18497 has a risk score of 40, indicating a medium severity level.

2

How do I fix CVE-2026-18497?

To fix CVE-2026-18497, update the nothings stb TrueType library to version 1.27 or later.

3

What type of vulnerability is CVE-2026-18497?

CVE-2026-18497 is a heap buffer overflow vulnerability.

4

Which library is affected by CVE-2026-18497?

CVE-2026-18497 affects the nothings stb TrueType library, specifically the stb_truetype.h header file.

5

What functions are affected by CVE-2026-18497?

The vulnerability in CVE-2026-18497 exists in the stbtt__GetGlyphShapeTT() function.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203