Medium severity · published Mar 31, 2026
CVE-2026-5185
Nothings stb_image Multi-frame GIF File stb_image.h stbi__gif_load_next heap-based overflow
5.3
CVSS
0.2%
EPSS
No
On KEV
Description
A security flaw has been discovered in Nothings stb_image up to 2.30. This affects the function stbi__gif_load_next of the file stb_image.h of the component Multi-frame GIF File Handler. The manipulation results in heap-based buffer overflow. The attack requires a local approach. The exploit has been released to the public and may be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
Low
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 5% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
ST
stb_image · Nothings
2.0; 2.1; 2.2; 2.3; 2.4; 2.5; +25 more · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-5185
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-5185
vuldb.com
https://vuldb.com/submit/780390
vuldb.com
https://vuldb.com/vuln/354253
vuldb.com
https://vuldb.com/vuln/354253/cti
More from stb_image
9.8
CVE-2023-45666
Possible double-free or memory leak in stbi__load_gif_main in stb_image
8.8
CVE-2023-45664
Double-free in stbi__load_gif_main_outofmem in stb_image
8.1
CVE-2023-45662
Multi-byte read heap buffer overflow in stbi__vertical_flip in stb_image
7.5
CVE-2023-45667
Null pointer dereference because of an uninitialized variable in stb_image
7.1
CVE-2023-45661
Wild address read in stbi__gif_load_next in stb_image
