Integer overflow in Nothings Stb
CVE-2026-102805
A flaw has been found in Nothings stb up to 1.16. This affects the function stbi_write_png_to_mem/stbi_write_jpg_core/stbi_write_tga_core in the library stb_image_write.h of the component Image Encoding. Executing a manipulation can lead to integer overflow. The attack can be executed remotely. The exploit has been published and may be used.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L.
EPSS exploit prediction
EPSS 0.003, 28.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Nothings Stb — versions 1.0, 1.1, 1.10
Weakness classification (CWE)
References
- VDB-411497 | Nothings stb Image Encoding stb_image_write.h stbi_write_tga_core integer overflow (technical-description, vdb-entry)
- VDB-411497 | CTI Indicators (IOB, IOC, IOA) (signature, permissions-required)
- CVE-2026-102805 | CVE Analysis and Report (third-party-advisory)
- Submit #944868 | nothings stb (stb_image_write.h) 31c1ad3 (latest at time of discovery) CWE-190: Integer Overflow; CWE-787: Out-of-bounds Write; CWE-125 (third-party-advisory)
- github.com/nothings/stb/issues/1964 (issue-tracking, exploit)
- github.com/nothings/stb/issues/1964 (issue-tracking)
- github.com/nothings/stb/ (product)