CVE-2026-18497 Affecting libstb package, versions *


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.19% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ECHOLATEST-LIBSTB-18611049
  • published11 Aug 2026
  • disclosed7 Aug 2026

Introduced: 7 Aug 2026

CVE-2026-18497  (opens in a new tab)

How to fix?

There is no fixed version for Echo:latest libstb.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libstb package and not the libstb package as distributed by Echo. See How to fix? for Echo:latest relevant fixed versions and status.

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.