Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
5DescriptionCVE.org
A weakness has been identified in Nothings stb up to 2.30. This impacts the function stbi__load_gif_main of the file stb_image.h of the component Multi-frame GIF File Handler. This manipulation causes double free. The attack requires local access. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
AnalysisAI
Double free vulnerability in Nothings stb library (up to version 2.30) in the multi-frame GIF file handler function stbi__load_gif_main allows local authenticated attackers to cause information disclosure and memory corruption. Public exploit code is available. The vendor did not respond to early disclosure notification, leaving affected users without an official patch.
Technical ContextAI
The vulnerability exists in stb_image.h, a popular single-header image loading library used across embedded systems, game engines, and applications for lightweight image processing. The weakness is classified as CWE-415 (Double Free), a memory safety defect where the same memory address is freed twice during processing of multi-frame GIF files. This occurs in the stbi__load_gif_main function, which handles parsing and loading of animated GIF data structures. Local authenticated attackers with file system or process access can craft malicious GIF files to trigger the double free condition, leading to heap corruption, information disclosure, and potential code execution depending on heap state and memory layout.
RemediationAI
Update to stb library version 2.31 or later if released by the vendor, or apply a patched version available from the official repository. No vendor-released patch version is confirmed from available data; users should monitor the Nothings stb GitHub repository for security updates and pull requests addressing double free in stbi__load_gif_main. As a temporary mitigation, disable GIF file loading functionality if not required by the application, implement file type validation to reject untrusted GIF files, and use sandboxing or privilege separation to limit impact of memory corruption. Vendors embedding stb_image.h should conduct code review of the stbi__load_gif_main function and consider applying upstream fixes from community sources if official patches are unavailable.
stb_image.h (aka the stb image loader) 2.23 has a heap-based buffer over-read in stbi__tga_load, leading to Information
STB v2.27 was discovered to contain an integer shift of invalid size in the component stbi__jpeg_decode_block_prog_ac. R
Buffer overflow vulnerability in function stbi__extend_receive in stb_image.h in stb 2.26 via a crafted JPEG file. Rated
Out-of-bounds write in Nothings stb library up to version 1.22 allows remote attackers to corrupt memory and potentially
Resource exhaustion in Nothings stb library versions up to 1.22 allows unauthenticated remote attackers to cause denial
Out-of-bounds read in Nothings stb library up to version 1.26 allows remote attackers to trigger information disclosure
Denial of service vulnerability in Nothings stb image library (stb_image.h) affecting GIF decoder function stbi__gif_loa
Same weakness CWE-415 – Double Free
View allSame technique Information Disclosure
View allVendor StatusVendor
SUSE
Severity: MediumShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-17340
GHSA-593x-hf83-hmrv