CVE-2026-18497 The nothings stb TrueType library contains a heap buffer overflow vulnerability
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
8 packages: 0 fixed, 7 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/libstb(Debian 12) | = 0.0~git20220908.8b5f1f3+ds-1; = 0.0~git20230129.5736b15+ds-1; = 0.0~git20230129.5736b15+ds-1.1; = 0.0~git20230129.5736b15+ds-1.1~exp1 +5 more | No fix listed | No fix yet |
| debian/libstb(Debian 13) | = 0.0~git20241109.5c20573+ds-1; = 0.0~git20250907.fede005+ds-1; All versions | No fix listed | No fix yet |
| debian/libstb(Debian 14) | = 0.0~git20241109.5c20573+ds-1; = 0.0~git20250907.fede005+ds-1; All versions | No fix listed | No fix yet |
| ubuntu/libstb(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/libstb(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/libstb(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/libstb(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| Sean Barrett (nothings) nothings stb | = 1.26 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Sean Barrett (nothings) nothings stb | = 1.26 | No fix listed |
| debian/libstb(Debian:12) | All versions | No fix listed |
| debian/libstb(Debian:12) | = 0.0~git20220908.8b5f1f3+ds-1 | No fix listed |
| debian/libstb(Debian:12) | = 0.0~git20230129.5736b15+ds-1 | No fix listed |
| debian/libstb(Debian:12) | = 0.0~git20230129.5736b15+ds-1.1 | No fix listed |
| debian/libstb(Debian:12) | = 0.0~git20230129.5736b15+ds-1.1~exp1 | No fix listed |
| debian/libstb(Debian:12) | = 0.0~git20230129.5736b15+ds-1.2 | No fix listed |
| debian/libstb(Debian:12) | = 0.0~git20240715.f7f20f39fe4f+ds-1 | No fix listed |
| debian/libstb(Debian:12) | = 0.0~git20241109.5c20573+ds-1 | No fix listed |
| debian/libstb(Debian:12) | = 0.0~git20250907.fede005+ds-1 | No fix listed |
| debian/libstb(Debian:13) | All versions | No fix listed |
| debian/libstb(Debian:13) | = 0.0~git20241109.5c20573+ds-1 | No fix listed |
| debian/libstb(Debian:13) | = 0.0~git20250907.fede005+ds-1 | No fix listed |
| debian/libstb(Debian:14) | All versions | No fix listed |
| debian/libstb(Debian:14) | = 0.0~git20241109.5c20573+ds-1 | No fix listed |
| debian/libstb(Debian:14) | = 0.0~git20250907.fede005+ds-1 | No fix listed |
| ubuntu/libstb(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/libstb(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/libstb(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/libstb(Ubuntu:26.10) | All versions | No fix listed |
References
- cwe.mitre.org
- github.com
- github.com exploit
- kb.cert.org
- www.kb.cert.org
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2512517 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-18497 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-54489 third-party-advisory