CVE-2026-5186 Details
Description
A weakness has been identified in Nothings stb up to 2.30. This impacts the function stbi__load_gif_main of the file stb_image.h of the component Multi-frame GIF File Handler. This manipulation causes double free. The attack requires local access. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
A double-free vulnerability has been identified in Nothings stb versions through 2.30, specifically within the function 'stbi__load_gif_main' in 'stb_image.h'. This issue arises when the function reallocates the output buffer for multi-frame GIFs. If the reallocation frees the old buffer and a subsequent realloc fails, the function mistakenly calls 'STBI_FREE' on the already-freed pointer, leading to a double-free condition. This vulnerability requires local access to exploit and could potentially allow for code execution through heap corruption, after 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/780395 | [email protected] | ExploitTechnical Description |
| https://vuldb.com/vuln/354254 | [email protected] | AdvisoryExploitPartial Content |
| https://vuldb.com/vuln/354254/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-415 | Double Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Nothings stb | <= 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