cve.bz

CVE-2026-18497 sean barrett (nothings) nothings stb: Heap-based Buffer Overflow

7.1 highEPSS 0.2%

High (7.1) in sean barrett (nothings) nothings stb. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

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

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 7th 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: total, assessed 2026-08-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-18497 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-18497?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-18497?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-18497 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 CNA's record in the CVE List.

ProductAffected
Sean Barrett (nothings) nothings stb1.26

Linux distributions

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

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 Important.

Red Hat's statement

This vulnerability is rated as Important for Red Hat products because an attacker could trigger out-of-bounds memory access leading to application crashes or potential code execution in the context of the user session. The stb library is not part of core Red Hat Enterprise Linux system daemons and is primarily embedded within specialized graphical utilities or third-party packages. Consequently, successful exploitation requires user interaction to process a maliciously crafted TrueType font file, restricting the blast radius to the individual application.

Red Hat's mitigation

To mitigate this issue, avoid processing untrusted TrueType Font (TTF) files with applications that utilize the `stb TrueType library`. Users should exercise caution when opening or importing font files from unknown or untrusted sources.

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-18497.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON