Buffer overflow in Nothings Stb_image
CVE-2026-5185
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 overfl…
Vulnerability class: Buffer Overflow
EPSS: 0.000 (3.4th percentile) — read the EPSS interpretation.
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.
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)
Frequently asked questions
- What is CVE-2026-5185?
- CVE-2026-5185 is a medium-severity vulnerability in Nothings Stb_image, classified under Improper Restriction of Operations within the Bounds of a Memory Buffer. CVSS score: 5.3/10. Published 2026-03-31.
- How severe is CVE-2026-5185?
- Medium severity. CVSS v3 base score is 5.3 out of 10.