Buffer overflow in Nothings Stb Image
CVE-2026-5185
- CVSS v3
- 5.3 Medium
- Public exploits
- None known
- EPSS
- 0.002 · 5.3th percentile
- Published
- 2026-03-31
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
- Attack Vector
- Local
AV:L - Attack Complexity
- Low
AC:L - Privileges Required
- Low
PR:L - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- Low
C:L - Integrity
- Low
I:L - Availability
- Low
A:L
EPSS exploit prediction
EPSS 0.002, 5.3th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Nothings Stb Image — versions 2.0, 2.1, 2.2
Weakness classification (CWE)
References
- VDB-354253 | Nothings stb_image Multi-frame GIF File stb_image.h stbi__gif_load_next heap-based overflow (technical-description, vdb-entry)
- VDB-354253 | CTI Indicators (IOB, IOC, IOA) (signature, permissions-required)
- Submit #780390 | nothings stb stb_image.h <= 2.30 Heap-based Buffer Overflow (third-party-advisory)