
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-5314 is an out-of-bounds read vulnerability in the stbtt_InitFont_internal function within the stb_truetype.h library (part of the nothings/stb single-file library collection), affecting all versions up to and including 1.26. The flaw resides in the TTF file handler component and can be triggered remotely by supplying a crafted font file, requiring user interaction to process. It was published on April 1, 2026, with a CVSS v3.1 base score of 8.8 (High) and a CVSS v4.0 base score of 2.1 (Low) — the discrepancy reflects differing scoring methodologies. The vendor was contacted prior to disclosure but did not respond (Github Advisory, VulDB).
The root cause is an improper restriction of operations within the bounds of a memory buffer (CWE-119 / CWE-125). Specifically, the helper function ttUSHORT() reads 2 bytes from font data at a given offset without first validating that the offset falls within the buffer's bounds. This is triggered during parsing of the cmap table entries in a crafted TTF file passed to stbtt_InitFont(). An attacker can exploit this remotely by delivering a malicious TTF file that, when opened or rendered by an application using the library, causes an out-of-bounds heap read. A public PoC (written in C) is available, including a base64-encoded malformed font file and a reproduction program buildable with clang -fsanitize=address (PoC Gist, Github Advisory).
Successful exploitation results in a heap buffer over-read, enabling an attacker to read memory contents beyond the intended buffer boundary — classified as a memory disclosure attack. In the worst case, sensitive data from adjacent heap memory (such as cryptographic material, credentials, or application state) could be exposed. The vulnerability can also cause application crashes, impacting availability. While the CVSS v4.0 score rates the direct vulnerability impact as low (availability impact only, no confidentiality or integrity impact in the vulnerable component), the CVSS v3.1 score of 8.8 reflects the broader potential consequences in certain deployment contexts (Github Advisory, PoC Gist).
A public proof-of-concept exploit is available on GitHub, consisting of a standalone C reproduction program and a crafted malicious TTF font file that triggers the OOB read when processed by stbtt_InitFont() (PoC Gist). The EPSS score is approximately 0.033–0.072%, placing it in the 22nd percentile for exploitation likelihood within 30 days. There is no evidence of in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. No threat actor attribution has been reported (Github Advisory).
poc.ttf) that contains malformed cmap table entries designed to trigger an out-of-bounds offset in ttUSHORT().stb_truetype.h version ≤ 1.26 to load or render TTF fonts — this could be a game engine, image editor, document viewer, or any software embedding the stb library.stbtt_InitFont() calls stbtt_InitFont_internal(), which invokes ttUSHORT() on an out-of-bounds offset during cmap table parsing..ttf font files in user download directories, temporary folders, or application asset directories; files with valid TTF magic bytes but malformed internal table structures.stb_truetype.h (e.g., game engines, rendering tools) when loading font files; AddressSanitizer (ASAN) reports referencing stb_truetype.h:1286 (ttUSHORT) or stb_truetype.h:1472 (stbtt_InitFont_internal).ttUSHORT, stbtt_InitFont_internal, or stbtt_InitFont; error logs indicating heap corruption or segmentation faults during font loading (PoC Gist).The primary remediation is to update stb_truetype.h to a version beyond 1.26 once a patched release is available; the GitHub Advisory (GHSA-x46x-p265-r7jv) should be monitored for patch details as the vendor has not yet responded to disclosure. As interim mitigations: validate and sanitize all TTF file inputs before passing them to stbtt_InitFont(); restrict or sandbox processing of TTF files from untrusted sources; and enable memory protection mechanisms such as ASLR and compile-time sanitizers (e.g., -fsanitize=address) to limit practical impact. Organizations should audit their software supply chain for any embedded use of stb_truetype.h ≤ 1.26 (Github Advisory, VulDB).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."