PatchSiren cyber security CVE debrief
CVE-2025-3407 Nothings CVE debrief
A vulnerability in Nothings stb image library, specifically in the `stbhw_build_tileset_from_image` function, allows out-of-bounds read through manipulation of the `h_count` and `v_count` arguments. The vulnerability is remotely exploitable and affects versions up to commit f056911. The vendor uses a rolling release model and did not respond to disclosure attempts. The vulnerability was published on April 8, 2025, and last modified on May 19, 2026.
- Vendor
- Nothings
- Product
- stb
- CVSS
- MEDIUM 5.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2025-04-08
- Original CVE updated
- 2026-05-19
- Advisory published
- 2025-04-08
- Advisory updated
- 2026-05-19
Who should care
Developers and maintainers of applications using the Nothings stb single-file image processing libraries, particularly those exposing image processing capabilities to remote or untrusted input sources. Security teams assessing supply chain risks in graphics and game development toolchains.
Technical summary
The `stbhw_build_tileset_from_image` function in Nothings stb library fails to properly validate the `h_count` and `v_count` arguments, leading to an out-of-bounds read condition. This vulnerability can be triggered remotely when processing crafted image data. The rolling release model of the project means specific version boundaries are not clearly defined, with the vulnerability present up to commit f056911. The CVSS 4.0 vector indicates network attack vector with low attack complexity, requiring user interaction but no privileges.
Defensive priority
medium
Recommended defensive actions
- Review and validate all inputs to `stbhw_build_tileset_from_image`, particularly `h_count` and `v_count` parameters, ensuring they are within expected bounds before processing
- Implement input sanitization and bounds checking for image tileset dimensions in applications using the stb library
- Consider using memory-safe alternatives or sandboxing for processing untrusted image data
- Monitor the Nothings stb repository for security updates or patches addressing this vulnerability
- Assess exposure of applications using stb image processing functions to remote untrusted input
Evidence notes
The vulnerability is classified as critical in the source description with a CVSS score of 5.3 (MEDIUM). The affected function `stbhw_build_tileset_from_image` processes image tilesets. The CPE criteria indicates affected versions up to 2.13. CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) and CWE-125 (Out-of-bounds Read) are identified as relevant weaknesses.
Official resources
-
CVE-2025-3407 CVE record
CVE.org
-
CVE-2025-3407 NVD detail
NVD
-
Source item URL
nvd_modified
-
Source reference
[email protected] - Permissions Required, VDB Entry
-
Mitigation or vendor reference
[email protected] - Third Party Advisory, VDB Entry
-
Mitigation or vendor reference
[email protected] - Third Party Advisory, VDB Entry
The vendor was contacted early about this disclosure but did not respond in any way.