
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-5186 is a double free vulnerability in the stbi__load_gif_main function within stb_image.h of the nothings/stb library, affecting all versions up to and including 2.30. The flaw resides in the Multi-frame GIF File Handler component and can be triggered by a locally accessible attacker with low privileges. It was published on March 31, 2026, with the vendor reportedly unresponsive to early disclosure attempts. The vulnerability carries a CVSS v3.1 base score of 5.3 (Medium) and a CVSS v4.0 base score of 4.8 (Medium) (GitHub Advisory, Red Hat Bugzilla).
The root cause is classified under CWE-415 (Double Free) and CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer), with an additional classification of CWE-1341 (Multiple Releases of Same Resource or Handle). The vulnerability occurs when the stbi__load_gif_main function in stb_image.h improperly manages memory during the processing of multi-frame GIF files, resulting in the same memory region being freed more than once. Exploitation requires local access and low privileges, with no user interaction needed. A proof-of-concept exploit has been made publicly available via VulDB (GitHub Advisory, Red Hat Bugzilla).
Successful exploitation of this double free vulnerability can result in low-level impacts to confidentiality, integrity, and availability of the affected system. An attacker with local, low-privilege access could corrupt heap memory, potentially leading to information disclosure, denial of service (application crash), or in more advanced scenarios, arbitrary code execution depending on the memory allocator and runtime environment. Because stb_image.h is a widely embedded single-header library used across many applications and game engines, the scope of affected systems may be broad (GitHub Advisory, Red Hat Bugzilla).
A proof-of-concept exploit has been publicly disclosed via VulDB (submission #780395), increasing the practical risk of exploitation. The EPSS score is approximately 0.012% (0.018% per GitHub Advisory), indicating a currently low probability of active exploitation within the next 30 days. There is no evidence of in-the-wild exploitation or threat actor attribution at this time, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The CVSS v4.0 exploit maturity is rated as "Proof of Concept" (GitHub Advisory).
stb_image.h) version 2.30 or earlier, particularly those that process multi-frame GIF files locally.stbi__load_gif_main function during frame parsing.stbi__load_gif_main in stb_image.h.stb_image.h; unusual files with .gif extensions in temporary or upload directories.stbi__load_gif_main or heap corruption errors; segmentation fault signals (SIGSEGV) or double free error messages (e.g., free(): double free detected) in application or system logs.stb_image.h).Organizations should update the nothings/stb library to a version beyond 2.30 once a patched release is available; a patch has been indicated in GitHub advisory records, though specific patched version numbers are not yet confirmed. In the interim, restrict local access to systems and applications that process GIF files using stb_image.h, and audit all codebases and dependencies that embed this single-header library. Consider disabling multi-frame GIF processing in affected applications if not required, and monitor for suspicious file processing activity. Since the vendor did not respond to disclosure, rely on community-provided patches and upstream repository commits (GitHub Advisory, Red Hat Bugzilla).
Red Hat's Product Security team tracked this vulnerability via Bugzilla (Bug 2453296), classifying it as medium severity with a focus on denial of service and information disclosure impacts. The GitHub Advisory Database published the advisory on March 31, 2026, noting it as "Unreviewed" with no specific patched version confirmed. The vendor (nothings) did not respond to early disclosure attempts, which has been noted as a concern in advisory documentation. No significant broader media coverage or notable researcher commentary beyond standard advisory tracking has been identified at this time (GitHub Advisory, Red Hat Bugzilla).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."