CVE-2026-5315 Nothings stb TTF File stb_truetype.h stbtt__buf_get8 out-of-bounds
An out-of-bounds read in the stb_truetype.h library allows remote attackers to cause denial of service or disclose information via crafted TTF files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2026-5315?
CVE-2026-5315 is a medium-severity memory corruption vulnerability in Nothings stb, published on 1 Apr 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A vulnerability was determined in Nothings stb up to 1.26. The affected element is the function stbtt__buf_get8 in the library stb_truetype.h of the component TTF File Handler. Executing a manipulation can lead to out-of-bounds read. The attack can be executed remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure but did not respond in any way.
Which versions are affected by CVE-2026-5315?
It affects 1 product.
Products include Nothings Stb Truetype.h.
How do I fix CVE-2026-5315?
No fix has been published for CVE-2026-5315 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2026-5315 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-5315 exists.
Other vulnerabilities in Nothings stb
Sources
Also known as DEBIAN-CVE-2026-5315, GHSA-gcmq-v5j6-6rjx, UBUNTU-CVE-2026-5315.