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.
Published: 2026-08-07
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability is a heap–buffer overflow in the stbtt__GetGlyphShapeTT() function of the nothings stb_truetype.h library. When parsing a malformed TrueType font file containing an inflated endPtsOfContours value, the parser attempts to read past the end of the glyph data buffer. This out‑of‑bounds read can reveal contents of memory adjacent to the buffer, potentially exposing sensitive information stored in the process’s address space. The weakness is a classic heap‑based buffer overflow (CWE‑122).

Affected Systems

The affected component is the TrueType font parser bundled in the nothings stb library, up to version 1.26. Applications that embed this library—including various game engines, graphics tools, or any software that loads and renders TrueType fonts—are susceptible. No specific third‑party vendors are listed, as the library originates from Sean Barrett (nothings).

Risk and Exploitability

The EPSS score is <1%, and the vulnerability is not listed in CISA’s KEV catalog, which suggests limited exploitation data at present. The CVSS score is 7.1, indicating a medium severity. Exploitation requires that an attacker can supply a crafted font to the vulnerable application, either through a user‑controlled file path or a network socket that forwards font data. Successful exploitation would typically lead to an information disclosure or a denial‑of‑service via a crash caused by the buffer overflow.

Generated by OpenCVE AI on August 13, 2026 at 10:40 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the stb_truetype.h library to a version newer than 1.26, preferably 1.27 or later, which includes the fixed parsing logic.
  • If an immediate upgrade is not possible, enforce strict validation of the endPtsOfContours value and the total glyph data length before invoking stbtt_GetGlyphShape(), rejecting fonts that exceed expected bounds.
  • Limit font loading to trusted sources only and implement a sandbox or input sanitization layer that ensures glyph data cannot overflow memory boundaries.

Generated by OpenCVE AI on August 13, 2026 at 10:40 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 12 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 12 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H'}


Sat, 08 Aug 2026 21:00:00 +0000

Type Values Removed Values Added
First Time appeared Sean Barrett
Sean Barrett nothings Stb
Vendors & Products Sean Barrett
Sean Barrett nothings Stb

Fri, 07 Aug 2026 15:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-122

Fri, 07 Aug 2026 14:45:00 +0000

Type Values Removed Values Added
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.
Title The nothings stb TrueType library contains a heap buffer overflow vulnerability
References

Subscriptions

Sean Barrett Nothings Stb
cve-icon MITRE

Status: PUBLISHED

Assigner: certcc

Published:

Updated: 2026-08-12T13:51:47.080Z

Reserved: 2026-07-31T15:58:31.185Z

Link: CVE-2026-18497

cve-icon Vulnrichment

Updated: 2026-08-07T15:17:50.021Z

cve-icon NVD

Status : Received

Published: 2026-08-07T15:16:59.707

Modified: 2026-08-12T14:17:48.027

Link: CVE-2026-18497

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T10:45:04Z

Weaknesses
  • CWE-122

    Heap-based Buffer Overflow