
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-5315 is an out-of-bounds read vulnerability in the stbtt__buf_get8 function within the stb_truetype.h library (TTF File Handler component) of Nothings stb, affecting all versions up to and including 1.26. The vulnerability was created on March 16, 2026, publicly disclosed on April 2, 2026, and assigned by VulDB. The vendor was contacted prior to disclosure but did not respond. It carries a CVSS v3.1 base score of 8.8 (High) and a CVSS v4.0 base score of 2.1 (Low), with an EPSS score of approximately 0.033% (GitHub Advisory, Red Hat Bugzilla).
The root cause is classified as CWE-125 (Out-of-bounds Read) and CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer). The stbtt__buf_get8 function reads a byte from a buffer object without first validating that the cursor position is within bounds, which is triggered during CFF (Compact Font Format) table parsing in stbtt_InitFont_internal(). An attacker can exploit this remotely by supplying a crafted malicious TTF font file to any application that uses the stb_truetype library to parse fonts; user interaction (opening or processing the malicious file) is required. A public proof-of-concept gist includes a base64-encoded malformed TTF file and a C reproduction program that triggers a heap-buffer-overflow (out-of-bounds read) confirmed via AddressSanitizer output (READ of size 1 at stbtt__buf_get8 stb_truetype.h:1137) (PoC Gist, GitHub Advisory).
Successful exploitation can result in memory disclosure (reading heap memory contents beyond the intended buffer boundary), which may expose sensitive data processed by the affected application. Depending on the application context, this could also lead to a denial of service (application crash) due to the invalid memory access. The CVSS v3.1 scoring reflects high confidentiality, integrity, and availability impact in the worst case, though the CVSS v4.0 assessment more conservatively rates the direct vulnerability impact as low availability impact with no confidentiality or integrity impact at the vulnerability layer (GitHub Advisory, Red Hat Bugzilla).
A functional proof-of-concept exploit has been publicly disclosed on GitHub, consisting of a crafted malicious TTF file and a C reproduction program that reliably triggers the out-of-bounds read (PoC Gist). The CVSS v4.0 exploit maturity is rated as PROOF_OF_CONCEPT. There is no current evidence of in-the-wild exploitation or threat actor attribution. The vulnerability is not listed in the CISA KEV catalog, and the EPSS score is approximately 0.033%, indicating a low probability of exploitation in the near term (GitHub Advisory).
gist_06_poc.b64) from the researcher's gist, decoding it with base64 -d poc.ttf.b64 > poc.ttf to produce a malformed TTF that triggers the OOB read in the CFF table parser.stb_truetype.h (version ≤ 1.26) to parse or render TTF/font files — this is common in game engines, graphics tools, and embedded font renderers.stbtt_InitFont(), it invokes stbtt_InitFont_internal(), which parses the CFF table and calls stbtt__buf_get8() without bounds checking, reading memory 26 bytes beyond the 212-byte allocated region..ttf font files in application directories or temporary folders; crafted TTF files with malformed CFF table structures.stbtt__buf_get8, stbtt_InitFont_internal, or stbtt_InitFont; AddressSanitizer output indicating heap-buffer-overflow at stb_truetype.h:1137.The primary remediation is to update stb_truetype.h to a version beyond 1.26, as the vulnerability affects all versions up to and including 1.26. Since stb is a single-header library typically vendored into projects, developers must manually update the header file in their codebases. As a workaround, validate and sanitize TTF files before passing them to the stb_truetype parser, and consider implementing input validation for TTF file structure. Deploying memory safety tools (e.g., AddressSanitizer in testing environments) and restricting the sources from which font files are accepted can reduce exposure (GitHub Advisory, Red Hat Bugzilla).
Red Hat tracked the vulnerability via Bugzilla (Bug 2454167) and classified it as medium severity, noting it as a denial-of-service risk via out-of-bounds read in TTF file handling. The GitHub Advisory Database published the advisory on April 2, 2026, though it remains unreviewed with no known patched package version listed. The vulnerability was noted on social platforms including Bluesky and aggregated by several CVE tracking services, but there has been no significant broader media coverage or notable researcher commentary beyond the initial PoC disclosure (GitHub Advisory, Red Hat Bugzilla).
Fix availability across major Linux distributions and their releases.
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."