cve.bz

CVE-2026-5314 nothings stb truetype.h: Out-of-bounds Read

2.1 lowExploit referenceEPSS 0.7%

Low (2.1) in nothings stb truetype.h. EPSS 0.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

2.1 low
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-04-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-5314 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-5314?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-5314?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-5314 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nothings:stb_truetype.hthrough 1.26

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libstbno fix listedDEBIAN-CVE-2026-5314
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 3 morelibstbno fix listedUBUNTU-CVE-2026-5314

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This Moderate impact vulnerability in Nothings stb allows a remote attacker to cause a Denial of Service. An out-of-bounds read in the stbtt_InitFont_internal function, triggered by processing a manipulated TTF file, can render the affected component unavailable. This issue affects Red Hat Community Projects that utilize the stb library for TTF file handling, such as those distributed via EPEL.

Red Hat's mitigation

To mitigate this issue, avoid processing untrusted TrueType font files with applications that utilize the `stb_truetype.h` library. Restricting the sources of font files to trusted origins can reduce the risk of exploitation.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-5314.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON