CVE-2026-5314 Nothings stb TTF File stb_truetype.h stbtt_InitFont_internal out-of-bounds

Medium 5.3 Published Updated

An out-of-bounds read in the stb TrueType 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-5314?

CVE-2026-5314 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 found in Nothings stb up to 1.26. Impacted is the function stbtt_InitFont_internal in the library stb_truetype.h of the component TTF File Handler. Performing a manipulation results in out-of-bounds read. Remote exploitation of the attack is possible. The exploit has been made public and could be used. The vendor was contacted early about this disclosure but did not respond in any way.

Weakness: CWE-125, CWE-119

Which versions are affected by CVE-2026-5314?

It affects 1 product.

Products include Nothings Stb Truetype.h.

How do I fix CVE-2026-5314?

No fix has been published for CVE-2026-5314 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-5314 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-5314 exists.

Sources

Also known as DEBIAN-CVE-2026-5314, GHSA-x46x-p265-r7jv, UBUNTU-CVE-2026-5314.

Is CVE-2026-5314 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free