
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-5185 is a heap-based buffer overflow vulnerability in Nothings' stb_image library (a widely used single-header image loading library) affecting all versions up to and including 2.30. The flaw resides in the stbi__gif_load_next function within stb_image.h, specifically in the Multi-frame GIF File Handler component. It was published on March 31, 2026, with the vendor reportedly not responding to prior 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 improper restriction of memory buffer operations (CWE-119, CWE-122) in the stbi__gif_load_next function, which fails to adequately validate frame data when parsing multi-frame GIF files, resulting in a heap-based buffer overflow (CWE-787 out-of-bounds write). An attacker must have local access and low privileges to supply a specially crafted multi-frame GIF file to an application using the vulnerable library. The manipulation of heap memory occurs during GIF frame decoding without sufficient bounds checking on the input data. Exploit code has been publicly released via VulDB (GitHub Advisory, Red Hat Bugzilla).
Successful exploitation can result in low-impact confidentiality, integrity, and availability compromises on the affected system. An attacker with local access could potentially cause denial of service (application crash) or, in more severe scenarios, achieve arbitrary code execution within the context of the process loading the malicious GIF file. Because stb_image is a widely embedded single-header library used across many applications (games, graphics tools, etc.), the blast radius depends on the privilege level and exposure of the consuming application (GitHub Advisory).
Exploit code has been publicly released and is available via VulDB (submission 780390), increasing the risk of opportunistic attacks. However, exploitation requires local access with low privileges, limiting the immediate attack surface. There is no confirmed evidence of in-the-wild exploitation at this time, no known threat actor attribution, and the vulnerability is not listed in the CISA KEV catalog. The EPSS score is approximately 0.012% (0.018% per GitHub Advisory), indicating a low near-term exploitation probability (GitHub Advisory, Red Hat Bugzilla).
stb_image library (version ≤ 2.30) for image loading, particularly those that process GIF files from user-supplied or untrusted sources.stbi__gif_load_next function — for example, by manipulating frame dimensions or pixel data to exceed allocated heap buffer boundaries.stbi__gif_load_next.stb_image for image loading, particularly when processing GIF files; core dump files generated by affected applications.stbi__gif_load_next or stb_image.h.Update stb_image to a version newer than 2.30 as soon as a patched release becomes available from the upstream repository. A patch has been noted as available per advisory sources, and organizations should monitor the nothings/stb GitHub repository for an updated stb_image.h. As interim mitigations: restrict local access to systems or applications that process GIF files from untrusted sources; minimize privileges of processes running stb_image-dependent code; implement input validation to reject unexpected or malformed GIF files before they reach the library; and monitor for suspicious activity related to GIF file processing (GitHub Advisory, Red Hat Bugzilla).
Red Hat opened a Bugzilla tracking entry (Bug 2453290) for this vulnerability, classifying it as medium severity, indicating awareness within the Linux ecosystem. The GitHub Advisory Database published the advisory as "Moderate" severity on March 31, 2026. The vendor (nothings) reportedly did not respond to the initial disclosure, which has been noted in the advisory description. Social media activity appears limited, with automated CVE tracking accounts on Bluesky referencing the issue shortly after publication (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."