Patch Forecast
Amber warning
Patch this week.

GHSA-hff9-5pqw-6w9f

imgproxy has integer overflow in imgproxy ICO loader that causes denial of service and may permit remote code execution

Risk score
69/100
CVSS
9.8 v3.1
Published
30 Oct 2026

Open in the live forecast Today's forecast

What to know

What it is
The imgproxy ICO loader has an integer overflow vulnerability that can cause denial of service and may permit remote code execution.
Affected
{'products': ['imgproxy'], 'packages': [{'ecosystem': 'go', 'name': 'github.com/imgproxy/imgproxy/v3', 'vulnerable': '>= 4.0.0, < 4.0.16'}, {'ecosystem': 'go', 'name': 'github.com/imgproxy/imgproxy/v2', 'vulnerable': '>= 4.0.0, < 4.0.16'}, {'ecosystem': 'go', 'name': 'github.com/imgproxy/imgproxy', 'vulnerable': '>= 4…
Fix
Upgrade to version 4.0.16 or later
Exploitation
No known exploitation

Story map

Story map: github.com/imgproxy/imgproxy/v3THE FLAWSTHE FIXGHSA-hff9-5pqw-6w9fImgproxy has integer overflowin imgproxy ICO loader thatcauses denial of service and…CVSS 9.8GHSA-494m-4556-wf5pImgproxy has out-of-boundsheap read/write in ICO loaderBMP header reconstruction…CVSS 7.5GHSA-mmq5-xm89-9pfgImgproxy has unboundedmemory allocation in ICOloader that allows…CVSS 7.5FixUpgrade to version 4.0.16 orlaterWho is exposed{'products': ['imgproxy'],'packages': [{'ecosystem': 'go','name':'github.com/imgproxy/imgproxy/v3', 'vulnerable': '>= 4.0.0, <…AMBER · PATCH THIS WEEKgithub.com/imgproxy/imgproxy/v3The imgproxy ICO loader has aninteger overflow vulnerabilitythat can cause denial of serviceand may permit remote codeexecution.Where it standsNo known exploitationCONNECTS TOSame weaknessHeap buffer overflow (CWE-122)399 other warnings in 30 days →
Story map: the flaws, the fix, how it unfolded and what it connects to. Boxes link to the record or article.

At a glance

github.com/imgproxy/imgproxy/v3: Amber, patch this week. The imgproxy ICO loader has an integer overflow vulnerability that can cause denial of service and may permit remote code execution.

The flaws

  • GHSA-hff9-5pqw-6w9f: Imgproxy has integer overflow in imgproxy ICO loader that causes denial of service and may permit remote code execution (CVSS 9.8)
  • GHSA-494m-4556-wf5p: Imgproxy has out-of-bounds heap read/write in ICO loader BMP header reconstruction that allows unauthenticated remote worker crash (CVSS 7.5)
  • GHSA-mmq5-xm89-9pfg: Imgproxy has unbounded memory allocation in ICO loader that allows unauthenticated memory-exhaustion DoS via crafted data_size field (CVSS 7.5)

The fix

Fix: Upgrade to version 4.0.16 or later

Who is exposed: {'products': ['imgproxy'], 'packages': [{'ecosystem': 'go', 'name': 'github.com/imgproxy/imgproxy/v3', 'vulnerable': '>= 4.0.0, < 4.0.16'}, {'ecosystem': 'go', 'name': 'github.com/imgproxy/imgproxy/v2', 'vulnerable': '>= 4.0.0, < 4.0.16'}, {'ecosystem': 'go', 'name': 'github.com/imgproxy/imgproxy', 'vulnerable': '>= 4…

Where it stands

  • No known exploitation

Connects to

Why it is Amber

  • CVSS 9.8 critical
  • Remotely exploitable without logging in
  • On your watchlist: Go

Affected packages

PackageEcosystemVulnerableFixed in
github.com/imgproxy/imgproxy/v3go>= 4.0.0, < 4.0.164.0.16
github.com/imgproxy/imgproxy/v2go>= 4.0.0, < 4.0.164.0.16
github.com/imgproxy/imgproxygo>= 4.0.0, < 4.0.164.0.16

References

Original description

## Summary The ICO loader allocates `data_size + BMP_FILE_HEADER_LEN` bytes after reading a 32-bit attacker-controlled `data_size`. For `data_size > UINT32_MAX - BMP_FILE_HEADER_LEN`, the addition wraps before allocation. imgproxy then writes the ICO prefix and reads up to the original declared size starting 14 bytes into the undersized allocation. A network client can turn this heap overflow into remote denial of service or remote code execution. ## Technical details The vulnerable path is in [`vips/icoload.c` at commit `f4fedbb`](https://github.com/imgproxy/imgproxy/blob/f4fedbb5c7f6684e7a8e0a9bb7e666773f3c40c0/vips/icoload.c#L154-L164): ```c uint32_t data_size = GUINT32_FROM_LE(largest_image_header.data_size); VipsPel *data = (VipsPel *) VIPS_MALLOC(NULL, data_size + BMP_FILE_HEADER_LEN); void *actual_data = data + BMP_FILE_HEADER_LEN; if (vips_foreign_load_read_full(ico->source, actual_data, data_size) <= 0) { vips_error("vips_foreign_load_ico_header", "unable to read ICO image data from the source"); return -1; } ``` The crafted directory entry contains: ```text data_size = 0xfffffff5 (4294967285) data_offset = 22 BMP header size = 14 32-bit result = (0xfffffff5 + 14) mod 2^32 = 3 ``` The allocation is therefore three bytes. `actual_data` points 14 bytes after the allocation base. The fixture contains 64 bytes after the ICO header, so the source callback copies those 64 bytes to an invalid destination before it can report that the declared multi-gigabyte payload is incomplete. The complete source-to-sink path is: 1. Attacker-controlled bytes begin with the ICO magic `00 00 01 00`. 2. imgproxy identifies the source as ICO and dispatches it to `vips_icoload_source_go`. 3. `vips_foreign_load_ico_header` reads the attacker-controlled `data_size`. 4. The 32-bit addition wraps, and `VIPS_MALLOC` receives the value three. 5. `vips_foreign_load_read_full` passes the original `data_size` to the Go source callback. 6. The callback writes the available source bytes through the invalid pointer, corrupting the process heap. ## Impact A crafted image can terminate the imgproxy process handling it or potentially lead to remote code execution due to heap corruption.

Last activity 30 Oct 2026. Patch Forecast updates every hour.