CVE-2026-5315
Linux Debian vulnerability analysis and mitigation

Overview

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

Technical details

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

Impact

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

Exploitability

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

Exploitation steps

  1. Craft a malicious TTF file: Use the publicly available base64-encoded PoC font file (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.
  2. Identify a target application: Locate an application that uses 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.
  3. Deliver the malicious font: Provide the crafted TTF file to the target application through any supported input channel (e.g., file upload, font loading API, document embedding), requiring the victim user to open or process the file.
  4. Trigger the vulnerability: When the application calls 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.
  5. Achieve objective: The out-of-bounds read may cause a crash (DoS) or, in a more targeted scenario, leak heap memory contents that could be used for information disclosure or to aid further exploitation (PoC Gist).

Indicators of compromise

  • File System: Presence of unexpected or externally sourced .ttf font files in application directories or temporary folders; crafted TTF files with malformed CFF table structures.
  • Logs: Application crash logs or core dumps referencing stbtt__buf_get8, stbtt_InitFont_internal, or stbtt_InitFont; AddressSanitizer output indicating heap-buffer-overflow at stb_truetype.h:1137.
  • Process: Unexpected application crashes or segmentation faults in processes that load or render fonts; abnormal termination of game engines, graphics tools, or document renderers after processing a font file.
  • Network: Unusual delivery of TTF files via web uploads, email attachments, or document sharing to applications known to use stb_truetype (PoC Gist).

Mitigation and workarounds

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

Community reactions

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

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-84382HIGH7.5
  • Linux Debian logoLinux Debian
  • python-httpx2
NoNoSep 02, 2026
CVE-2026-84378MEDIUM5.9
  • Linux Debian logoLinux Debian
  • python-httpx2
NoNoSep 02, 2026
CVE-2026-84380MEDIUM5.6
  • Linux Debian logoLinux Debian
  • python-httpx2
NoNoSep 02, 2026
CVE-2026-84379MEDIUM5.3
  • Linux Debian logoLinux Debian
  • python-httpx2
NoNoSep 02, 2026
CVE-2026-82522MEDIUM5.3
  • Linux Debian logoLinux Debian
  • jpeg-xl
NoNoSep 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management