CVE-2026-18497The nothings stb TrueType library contains a heap buffer overflow vulnerability
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.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libstb | Fix pending | UBUNTU-CVE-2026-18497 | |
| Ubuntu 26.04 | libstb | Under investigation | UBUNTU-CVE-2026-18497 | |
| Ubuntu 24.04 | libstb | Under investigation | UBUNTU-CVE-2026-18497 | |
| Ubuntu 22.04 | libstb | Under investigation | UBUNTU-CVE-2026-18497 | |
| Ubuntu 20.04 | libstb | Fix pending | UBUNTU-CVE-2026-18497 | |
| Debian 14 | libstb | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2026-18497 | |
| Debian 13 | libstb | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2026-18497 | |
| Debian 12 | libstb | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2026-18497 |
What the vendor says
As published in the CVE record by certcc, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Sean Barrett (nothings) nothings stb: affected: 1.26
References
- https://cwe.mitre.org/data/definitions/122.html
- https://github.com/nothings/stb
- https://github.com/nothings/stb/issues/1905
- https://kb.cert.org/vuls/id/987105
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.