CVE-2026-5315 Details
Description
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.
A heap buffer overflow vulnerability, leading to an out-of-bounds read, has been identified in the Nothings STB library, specifically in the TTF file handler component, version 1.26 and prior. The issue arises in the function 'stbtt__buf_get8' within the 'stb_truetype.h' file. This vulnerability can be exploited remotely by manipulating a crafted font file, particularly one with a CFF (Compact Font Format) table that contains invalid offsets. The out-of-bounds read occurs during the font initialization process, when the library parses the CFF data without proper validation of the buffer's cursor position. As a result, the function reads beyond the allocated memory, creating a potential security risk.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/d0razi/c11dd07c75f3b795e4f8bbfd6e2f0d29 | [email protected] | ExploitThird Party Advisory |
| https://vuldb.com/submit/780559 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/vuln/354647 | [email protected] | Third Party AdvisoryVDB Entry |
| https://vuldb.com/vuln/354647/cti | [email protected] | Permissions RequiredVDB Entry |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| nothings stb truetype.h | <= 1.26 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 30, 2026 | Initial Analysis | [email protected] |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Apr 2, 2026 | New CVE Received | [email protected] |