# CVE-2026-18497: The nothings stb TrueType library contains a heap buffer overflow vulnerability

- Severity: High 7.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-07T14:19:42.854Z
- Modified: 2026-10-23T21:10:00.157Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: certcc

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

(As written by CVE List.)

## Affected

- Sean Barrett (nothings) nothings stb: 1.26

## References

- <https://github.com/nothings/stb/issues/1905> (exploit)
- <https://cwe.mitre.org/data/definitions/122.html>
- <https://github.com/nothings/stb>
- <https://kb.cert.org/vuls/id/987105>
- <https://www.kb.cert.org/vuls/id/987105>

## Sources

- CVE List: [CVE-2026-18497](https://www.cve.org/CVERecord?id=CVE-2026-18497), CVE Terms of Use, modified 2026-08-12
- NVD: [CVE-2026-18497](https://nvd.nist.gov/vuln/detail/CVE-2026-18497), Public domain, modified 2026-10-23

---

Page: https://cve.day/CVE-2026-18497 · Whole record: https://cve.day/CVE-2026-18497.json · Rebuilt by cve.day 2026-11-25T22:59:31.849Z
