CVE-2026-5185 Details
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.
A heap-based buffer overflow vulnerability has been identified in Nothings stb_image versions through 2.30. The issue arises in the function 'stbi__gif_load_next' within 'stb_image.h', specifically in the Multi-frame GIF File Handler component. The vulnerability is triggered by a crafted multi-frame GIF file, which exploits an incorrectly calculated pointer, leading to an out-of-bounds memory read. This manipulation causes a heap-buffer-overflow condition, with potential impacts including information disclosure through a heap memory leak and a denial-of-service by causing a crash.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 31, 2026CISA-ADP
Assessed Mar 31, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://vuldb.com/submit/780390 | [email protected] | ExploitTechnical Description |
| https://vuldb.com/vuln/354253 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/354253/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-119 | Improper Restriction of Operations within the Bounds of a Memory Buffer | [email protected] |
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Nothings stb_image | <= 2.30 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 29, 2026 | Data Remediation | [email protected] |
| Mar 31, 2026 | New CVE Received | [email protected] |
Volerion