imgproxy ICO loader: unauthenticated integer overflow may allow RCE, plus heap OOB and memory-exhaustion DoS (GHSA-hff9-5pqw-6w9f / 494m / mmq5)
imgproxy
Sponsored
Brought to you byTinkerer Club
The private club for people who own their servers, run their own AI, and pay $0/month for software.
imgproxy's ICO loader (vips/icoload.c) has three related flaws reachable with a crafted image. GHSA-hff9-5pqw-6w9f is a critical unauthenticated integer overflow: an attacker-controlled 32-bit data_size wraps when BMP_FILE_HEADER_LEN is added, so the process allocates a few bytes then writes far past the buffer — GitHub rates it CVSS 3.1 9.8 and says the heap overflow can cause denial of service or remote code execution. GHSA-mmq5-xm89-9pfg (high, CVSS 7.5) passes the same data_size to VIPS_MALLOC without a bound, so a tiny ICO can force a multi-gigabyte allocation. GHSA-494m-4556-wf5p (high, CVSS 7.5) reconstructs a BMP header from unvalidated fields and can write out of bounds, crashing the worker. Fixed in v4.0.16 (overflow + unbounded alloc) and v4.0.17 (OOB heap R/W). Also tracked as GO-2026-6897, GO-2026-6898 and GO-2026-6895.
Why this severity: GHSA-hff9-5pqw-6w9f Critical CVSS 3.1 9.8 (unauth integer overflow → possible RCE); sibling ICO-loader DoS advisories GHSA-mmq5-xm89-9pfg and GHSA-494m-4556-wf5p High CVSS 7.5
- Started
- Oct 30, 2026
Affected
- imgproxy >= 4.0.0, < 4.0.16 (integer overflow / unbounded alloc; also github.com/imgproxy/imgproxy{,/v2,/v3})
- imgproxy >= 3.3.0, < 4.0.17 (OOB heap R/W in ICO BMP header reconstruction; GHSA-494m-4556-wf5p)
Fixed in
- imgproxy 4.0.16 (GHSA-hff9-5pqw-6w9f, GHSA-mmq5-xm89-9pfg)
- imgproxy 4.0.17 (GHSA-494m-4556-wf5p)
Timeline1
Advisories11
- GHSA-hff9-5pqw-6w9f: integer overflow in ICO loader (DoS / possible RCE)imgproxy/imgproxy · Oct 30, 2026
- GHSA-hff9-5pqw-6w9fGitHub Advisory Database · Oct 30, 2026
- GHSA-494m-4556-wf5p: OOB heap R/W in ICO loader BMP header reconstructionimgproxy/imgproxy · Oct 30, 2026
- GHSA-mmq5-xm89-9pfg: unbounded memory allocation in ICO loaderimgproxy/imgproxy · Oct 30, 2026
- GO-2026-6897 (maps to GHSA-hff9-5pqw-6w9f)Go vulnerability database · Oct 30, 2026
- GO-2026-6895 (maps to GHSA-494m-4556-wf5p)Go vulnerability database · Oct 30, 2026
- GO-2026-6898 (maps to GHSA-mmq5-xm89-9pfg)Go vulnerability database · Oct 30, 2026
- imgproxy v4.0.16 releaseimgproxy/imgproxy
- imgproxy v4.0.17 releaseimgproxy/imgproxy
- Fix commit a821b6a (v4.0.16)imgproxy/imgproxy
- Fix commit 39fd9e8 (v4.0.17)imgproxy/imgproxy
Get an email when a new major security incident drops. No spam, unsubscribe any time.