Go
CVE-2026-123616
imgproxy has unbounded memory allocation in ICO loader that allows unauthenticated memory-exhaustion DoS via crafted data_size field
- Severity
- High 7.5
- Published
- 30 Oct 2026
- Last changed
- 8 Nov 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 4.0.16
- Exploit chance
- 0.5% in the next 30 daysHigher than 41% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-mmq5-xm89-9pfg, GO-2026-6898
- Sources
- OSV.dev and GitHub
Description
Unbounded and unvalidated memory allocation in imgproxy's ICO loader (vips/icoload.c). An attacker-controlled data_size field (u32) from the ICO directory entry is passed directly to VIPS_MALLOC without any bounds check, so a single crafted 23-byte ICO file makes an imgproxy worker attempt a ~4GB allocation. Present in the latest release (v4.0.15) and the 3.3.x series; confirmed on a live production deployment of imgproxy v4.0.15.
In vips_foreign_load_ico_header in vips/icoload.c, the selected directory entry's data_size is read and used directly for the allocation:
There is no validation that data_size is sane nor any check that the file actually contains data_size bytes at the declared data_offset. A crafted 23-byte ICO whose directory entry declares data_size = 0xfa000068 (~4GB) drives VIPS_MALLOC(NULL, ~4GB + 14).
Unauthenticated network DoS / memory-exhaustion: on memory-constrained workers, a crash per crafted request.
Affected software
| Software | Affected versions |
|---|---|
github.com/imgproxy/imgproxy/v3Go · osv:Go:github.com/imgproxy/imgproxy/v3 |
|
About github.com/imgproxy/imgproxy/v3
Vulnerabilities in github.com/imgproxy/imgproxy/v3
- In our list
- 3
- Published in the last 12 months
- 3
- Critical, last 12 months
- 1
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-123614imgproxy has integer overflow in imgproxy ICO loader that causes denial of service and may permit remote code executionCritical 9.3 30 Oct 2026
- CVE-2026-123615imgproxy has out-of-bounds heap read/write in ICO loader BMP header reconstruction that allows unauthenticated remote worker crashHigh 7.5 30 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-123616
- GitHub Advisory Database https://github.com/advisories/GHSA-mmq5-xm89-9pfg