Skip to main content

Stb Truetype H CVE-2026-5315

| EUVDEUVD-2026-18109 LOW
Buffer Overflow (CWE-119)
2026-04-02 cna@vuldb.com
2.1
CVSS 4.0 · Vendor: vuldb
View

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, buffer size validation
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

The CVSS 4.0 vector indicates network-accessible attack surface (AV:N) with low attack complexity (AC:L), no privileges required (PR:N), but requiring user interaction (UI:P). The availability impact is low (VA:L) with no confidentiality or integrity impact scored (VC:N, VI:N), though an out-of-bounds read inherently risks information disclosure. The EPSS score shows E:P (exploit POC exists), elevating practical exploitation likelihood above baseline CVSS. However, real-world risk is tempered by the user interaction requirement-an attacker must socially engineer a target into opening a malicious font file within an application using the vulnerable stb_truetype.h parser. The absence of code execution or data modification capabilities limits impact, making this a reconnaissance or denial-of-service vector rather than critical system compromise. Applications embedding stb with automatic font loading (e.g., game engines, document renderers) without explicit user warnings face higher risk than those with manual file selection.

Exploit ScenarioDerived

An attacker crafts a malicious TTF font file with corrupted buffer offset values and distributes it via email, a compromised website, or a trojanized software package. When a user opens the file in a vulnerable application (e.g., a document viewer, font preview tool, or game that loads custom assets), the stbtt__buf_get8 function attempts to read at an invalid offset, causing an out-of-bounds memory read. Publicly disclosed exploit code exists, enabling low-skill attackers to automate malformed TTF generation. The attacker can extract sensitive data from adjacent memory regions, or crash the application to establish a foothold for social engineering follow-up attacks.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 02, 2026

Out-of-bounds read in Nothings stb library (stb_truetype.h) up to version 1.26 allows remote attackers to trigger memory access violations via malformed TTF font files, resulting in information disclosure. The vulnerability affects the stbtt__buf_get8 function in the TTF file handler and requires user interaction to exploit. Publicly available exploit code exists, though the vendor has not responded to disclosure notifications. CVSS 5.3 with EPSS probability of exploitation (E:P) indicates moderate real-world risk.

RemediationAI

Update the stb library to a version newer than 1.26 that incorporates bounds checking fixes in stbtt__buf_get8. For applications unable to update immediately, implement external validation of TTF files before parsing by restricting font file sources to trusted repositories and disabling automatic font loading from untrusted sources. Review application code to ensure user-supplied font files are validated against file type signatures and size limits before stb_truetype.h processing. The vendor (Nothings/Sean Barrett) did not provide a coordinated patch timeline per disclosure data; monitor the official stb GitHub repository (https://github.com/nothings/stb) for updates and apply promptly.

Affected VersionsENISA

stb 1.5
stb 1.21
stb 1.15
stb 1.10
stb 1.17
stb 1.13
stb 1.9
stb 1.24
stb 1.22
stb 1.0
stb 1.11
stb 1.3
stb 1.14
stb 1.7
stb 1.1
stb 1.26
stb 1.23
stb 1.18
stb 1.2
stb 1.16
stb 1.8
stb 1.6
stb 1.19
stb 1.20
stb 1.25
stb 1.12
stb 1.4

Affected Packages

euvd stb no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The stb library is a single-header C library collection widely used for graphics, audio, and file format processing. The vulnerability resides in stb_truetype.h, a TrueType font parsing module that lacks proper bounds validation in the stbtt__buf_get8 function when reading binary TTF file data. The root cause is classified as CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer), specifically an out-of-bounds read condition where the function fails to validate buffer offsets before attempting byte-level reads. This allows an attacker to craft a malicious TTF file with invalid offset values, causing the parser to read beyond allocated memory regions and potentially leak sensitive data from adjacent memory.

Know when Stb Truetype H gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vuldb) PRIMARY 2.1 LOW
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P
Red Hat 6.5 MEDIUM

Primary rating from Vendor (vuldb).

CVSS VectorVendor: vuldb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Severity Changed
Apr 29, 2026 - 01:11 NVD
MEDIUM LOW
CVSS changed
Apr 29, 2026 - 01:11 NVD
5.3 (MEDIUM) 2.1 (LOW)
Patch released
Apr 02, 2026 - 20:30 nvd
Patch available
CVE Published
Apr 02, 2026 - 00:16 nvd
MEDIUM 5.3

DescriptionCVE.org

A vulnerability was determined in Nothings stb up to 1.26. The affected element is the function stbtt__buf_get8 in the library stb_truetype.h of the component TTF File Handler. Executing a manipulation can lead to out-of-bounds read. The attack can be executed remotely. The exploit has been publicly disclosed and may be utilized. The vendor was contacted early about this disclosure but did not respond in any way.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Related Vulnerabilities in Nothings stb Library Memory Safety Flaws

View all 3
CVE-2020-6623 HIGH POC
8.8 Jan 08

stb stb_truetype.h through 1.22 has an assertion failure in stbtt__cff_get_index. Rated high severity (CVSS 8.8), this v

CVE-2020-6622 HIGH POC
8.8 Jan 08

stb stb_truetype.h through 1.22 has a heap-based buffer over-read in stbtt__buf_peek8. Rated high severity (CVSS 8.8), t

CVE-2020-6621 HIGH POC
8.8 Jan 08

stb stb_truetype.h through 1.22 has a heap-based buffer over-read in ttUSHORT. Rated high severity (CVSS 8.8), this vuln

CVE-2020-6620 HIGH POC
8.8 Jan 08

stb stb_truetype.h through 1.22 has a heap-based buffer over-read in stbtt__buf_get8. Rated high severity (CVSS 8.8), th

CVE-2020-6619 HIGH POC
8.8 Jan 08

stb stb_truetype.h through 1.22 has an assertion failure in stbtt__buf_seek. Rated high severity (CVSS 8.8), this vulner

CVE-2020-6618 HIGH POC
8.8 Jan 08

stb stb_truetype.h through 1.22 has a heap-based buffer over-read in stbtt__find_table. Rated high severity (CVSS 8.8),

CVE-2020-6617 HIGH POC
8.8 Jan 08

stb stb_truetype.h through 1.22 has an assertion failure in stbtt__cff_int. Rated high severity (CVSS 8.8), this vulnera

CVE-2022-25514 HIGH POC
7.5 Mar 17

stb_truetype.h v1.26 was discovered to contain a heap-buffer-overflow via the function ttUSHORT() at stb_truetype.h. Rat

CVE-2022-25516 MEDIUM POC
6.5 Mar 17

stb_truetype.h v1.26 was discovered to contain a heap-buffer-overflow via the function stbtt__find_table at stb_truetype

CVE-2022-25515 MEDIUM POC
6.5 Mar 17

stb_truetype.h v1.26 was discovered to contain a heap-buffer-overflow via the function ttULONG() at stb_truetype.h. Rate

Vendor StatusVendor

Debian

libstb
Release Status Fixed Version Urgency
bullseye vulnerable 0.0~git20200713.b42009b+ds-1 -
bullseye (security) vulnerable 0.0~git20200713.b42009b+ds-1+deb11u1 -
bookworm vulnerable 0.0~git20220908.8b5f1f3+ds-1 -
trixie vulnerable 0.0~git20241109.5c20573+ds-1 -
forky, sid vulnerable 0.0~git20250907.fede005+ds-1 -
(unstable) fixed (unfixed) -

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy