Skip to content

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

HighCVSS 7.1 EPSS 0.18%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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