Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSupply crafted format-string input to consuming application
-
DeliveryInput routed to stbsp_vsnprintf without sanitization
-
ExploitOut-of-bounds read triggered in buffer-handling logic
-
ExecutionProcess crash
-
ImpactDenial of service achieved
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target application vendors stb_sprintf.h at commit 31c1ad3 or earlier and exposes a code path through which attacker-controlled data (a crafted format string or associated variadic arguments) reaches stbsp_vsnprintf without prior sanitization. The local attack vector (AV:L per CVSS) indicates the vulnerability cannot be exploited purely over a network unless the consuming application explicitly passes network-received data into stbsp_vsnprintf; exploitation requires local access to the process or a specific exposed input pathway in the consuming application. High attack complexity (AC:H) further constrains exploitation: triggering the precise out-of-bounds condition requires knowledge of the function's internal buffer-management behavior. Impact is limited to denial of service (process crash) of the consuming application. Applications that do not vendor stb_sprintf.h, or that validate and bound all format-string inputs before passing them to the function, are not exploitable. |
| Impact | The CVSS 3.1 vector (AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L) yields a score of 4.0, reflecting constrained exploitability: the local attack vector requires that attacker-controlled data reach stbsp_vsnprintf within the consuming process, and high attack complexity demands specific knowledge of the function's internal buffer logic. The I:L (integrity low) metric in the provided vector is not explained by the description, which characterizes impact as DoS only - this discrepancy warrants verification against the upstream GitHub issue. EPSS data is absent from the provided intelligence, but low CVSS, no KEV listing, and no public exploit code collectively suggest low exploitation probability. Even a mid-sized municipal IT team in boleslawiec maintaining a graphics pipeline that vendors stb_sprintf.h would reasonably handle this as a routine patch-cycle item rather than an emergency response. The primary real-world risk is the long tail of downstream projects that vendor the header and will require individual manual updates even after an upstream fix is committed. |
| Exploit ScenarioDerived | An attacker who can influence input processed by an application that vendors stb_sprintf.h crafts a malformed format string or variadic argument that causes stbsp_vsnprintf to read beyond the intended buffer boundary. The out-of-bounds read triggers an abnormal process termination, denying service for any function or service reliant on the affected binary. No public exploit code has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 09, 2026
Out-of-bounds memory read in the stb library's stbsp_vsnprintf function (stb_sprintf.h) at commit 31c1ad3 enables a denial-of-service condition when a consuming application passes attacker-controlled input to the function. The nothings/stb project is Sean Barrett's widely-vendored, public-domain, single-file C library suite embedded across game engines, imaging tools, and embedded systems. No public exploit code and no CISA KEV listing exist at time of analysis; the local attack vector and high attack complexity in the CVSS vector further limit practical exploitability.
RemediationAI
Update the vendored copy of stb_sprintf.h to a commit after 31c1ad3 that resolves the out-of-bounds read, tracking the upstream changes referenced in the GitHub issue at https://github.com/nothings/stb/issues/1963. No vendor-released patch with an explicit version tag has been independently confirmed at time of analysis. Because stb is distributed as a copied header file, each consuming project must identify its vendored copy, apply the fix manually, and rebuild. As a compensating control, consuming applications can validate all inputs before passing them to stbsp_vsnprintf - ensuring format strings and variadic arguments conform to expected types and bounded lengths - which reduces the exploitable attack surface without requiring a library update. Replacing the vendored implementation with the platform's native vsnprintf is a structural alternative, though adopters should note that stb_sprintf was often chosen for portability and deterministic behavior on embedded targets where libc is unavailable.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
stb_sprintf.h is a portable, header-only C implementation of the printf/sprintf function family, designed for embedding directly into project source trees rather than linking as a shared library. The vulnerable function stbsp_vsnprintf performs variadic formatted output; the reported flaw causes the function to read memory beyond the bounds of an intended buffer when processing certain crafted format-string inputs - behavior consistent with CWE-125 (Out-of-Bounds Read), though the CWE field in the provided data is listed as N/A. The CPE entry (cpe:2.3:a:n/a:n/a) is a known placeholder; the actual affected artifact is the nothings/stb repository at commit 31c1ad3. Because stb headers are vendored by copying the file into consuming project trees, downstream exposure is fragmented across every project that includes the header at or before the vulnerable commit.
Know when the next one hits your stack
- 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
AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
Local vector because exploitation depends on controlled input reaching the library; I:N assessed since an OOB read causes no integrity impact per the description.
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
DescriptionCVE.org
An out-of-bounds read in the stbsp_vsnprintf function (stb_sprintf.h) of nothings stb commit 31c1ad3 allows attackers to cause a Denial of Service (DoS) via sending a crafted input.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
EUVD-2026-75160
GHSA-65qg-r8w5-5wxq
NVD
CVE.org
EPSS
VulDB
Exploit-DB