Vulnerability · Published Mar 31, 2026 · Assigned by VulDB
CVE-2026-5185Nothings stb_image Multi-frame GIF File stb_image.h stbi__gif_load_next heap-based overflow
Medium 5.3
In plain English
A medium-severity heap buffer overflow in stb_image from Nothings. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 5% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libstb | no fix listed | DEBIAN-CVE-2026-5185 |
| Debian:13 | libstb | no fix listed | DEBIAN-CVE-2026-5185 |
| Debian:14 | libstb | no fix listed | DEBIAN-CVE-2026-5185 |
| Ubuntu:22.04:LTS | libstb | no fix listed | UBUNTU-CVE-2026-5185 |
| Ubuntu:24.04:LTS | libstb | no fix listed | UBUNTU-CVE-2026-5185 |
| Ubuntu:25.10 | libstb | no fix listed | UBUNTU-CVE-2026-5185 |
| Ubuntu:26.04:LTS | libstb | no fix listed | UBUNTU-CVE-2026-5185 |
| Ubuntu:26.10 | libstb | no fix listed | UBUNTU-CVE-2026-5185 |
Affected products (as reported)
Weakness: CWE-122, CWE-119 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
References
- VDB-354253 | Nothings stb_image Multi-frame GIF File stb_image.h stbi__gif_load_next heap-based overflow vdb-entry, technical-description
- 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