Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Double free prevention
|
| Impact | CVSS 5.3 (AV:L/AC:L/PR:L) indicates a local attack requiring low privilege user access with low complexity. The CVSS vector shows information disclosure (C:L), integrity compromise (I:L), and availability impact (A:L). The evidence (E:P) modifier confirms public exploit availability. EPSS is not provided, but the combination of published exploit code, memory corruption primitive (double free), and low attack complexity creates moderate real-world risk despite the local-only attack vector. This is not a critical vulnerability for remote-facing applications, but poses significant risk in multi-user systems, containerized environments, or applications processing untrusted GIF files from local sources. The vendor's non-response limits confidence in remediation timeline, elevating practical risk for users of the library. |
| Exploit ScenarioDerived | A local user on a multi-user system crafts a malicious GIF file and places it in a shared directory or uploads it to an application that uses stb_image.h for processing. When the application or another user's process loads the malicious GIF through stbi__load_gif_main, the double free condition is triggered during multi-frame parsing. The heap corruption allows the attacker to read adjacent memory (information disclosure) or, under favorable heap conditions, potentially overwrite function pointers or other critical data structures to achieve privilege escalation or code execution. Public exploit code documented in VulDB reduces the barrier for attackers to weaponize this vulnerability. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Mar 31, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Stb gets its next vulnerability
- 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
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
AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionCVE.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.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in Nothings stb_image Buffer Overflow Flaws
View all 2stb_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
Integer overflow in the image-encoding routines of nothings/stb (stb_image_write.h, stb through version 1.16) allows rem
Integer overflow in the hexwave_init() function of Nothings stb (stb_hexwave.h) corrupts allocation sizing when an appli
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
EUVD-2026-17340
GHSA-593x-hf83-hmrv
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB