{"items":[{"id":"NVI-00008910","kind":"vulnerability","title":"imgproxy has integer overflow in imgproxy ICO loader that causes denial of service and may permit remote code execution","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-hff9-5pqw-6w9f"],"plain_summary":"GitHub lists this reviewed advisory for github.com/imgproxy/imgproxy/v3, github.com/imgproxy/imgproxy/v2, github.com/imgproxy/imgproxy. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-293b0e9be5a7c0cbb60003f47a2a0f89"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-10-30T22:57:03.000Z","value":"9.8 critical","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-293b0e9be5a7c0cbb60003f47a2a0f89"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-293b0e9be5a7c0cbb60003f47a2a0f89","url":"https://github.com/advisories/GHSA-hff9-5pqw-6w9f","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-hff9-5pqw-6w9f","publisher":"GitHub Advisory Database","observed_at":"2026-10-31T21:55:49.621Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-293b0e9be5a7c0cbb60003f47a2a0f89"],"technology":"github.com/imgproxy/imgproxy/v3","known_exclusions":[],"conditions_summary":"## Summary\n\nThe 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.\n\n## Technical details\n\nThe vulnerable path is in `vips/icoload.c` at commit `f4fedbb`:\n\n```c\nuint32_t data_size = GUINT32_FROM_LE(largest_image_header.data_size);\n\nVipsPel *data = (VipsPel *) VIPS_MALLOC(NULL, data_size + BMP_FILE_HEADER_LEN);\nvoid *actual_data = data + BMP_FILE_HEADER_LEN;\n\nif (vips_foreign_load_read_full(ico->source, actual_data, data_size) <= 0) {\n  vips_error(\"vips_foreign_load_ico_header\", \"unable to read ICO image data from the source\");\n  return -1;\n}\n```\n\nThe crafted directory entry contains:\n\n```text\ndata_size       = 0xfffffff5 (4294967285)\ndata_offset     = 22\nBMP header size = 14\n32-bit result   = (0","public_affected_ranges":[">= 4.0.0, < 4.0.16"]},{"certainty":"source_listed","source_ids":["sr-293b0e9be5a7c0cbb60003f47a2a0f89"],"technology":"github.com/imgproxy/imgproxy/v2","known_exclusions":[],"conditions_summary":"## Summary\n\nThe 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.\n\n## Technical details\n\nThe vulnerable path is in `vips/icoload.c` at commit `f4fedbb`:\n\n```c\nuint32_t data_size = GUINT32_FROM_LE(largest_image_header.data_size);\n\nVipsPel *data = (VipsPel *) VIPS_MALLOC(NULL, data_size + BMP_FILE_HEADER_LEN);\nvoid *actual_data = data + BMP_FILE_HEADER_LEN;\n\nif (vips_foreign_load_read_full(ico->source, actual_data, data_size) <= 0) {\n  vips_error(\"vips_foreign_load_ico_header\", \"unable to read ICO image data from the source\");\n  return -1;\n}\n```\n\nThe crafted directory entry contains:\n\n```text\ndata_size       = 0xfffffff5 (4294967285)\ndata_offset     = 22\nBMP header size = 14\n32-bit result   = (0","public_affected_ranges":[">= 4.0.0, < 4.0.16"]},{"certainty":"source_listed","source_ids":["sr-293b0e9be5a7c0cbb60003f47a2a0f89"],"technology":"github.com/imgproxy/imgproxy","known_exclusions":[],"conditions_summary":"## Summary\n\nThe 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.\n\n## Technical details\n\nThe vulnerable path is in `vips/icoload.c` at commit `f4fedbb`:\n\n```c\nuint32_t data_size = GUINT32_FROM_LE(largest_image_header.data_size);\n\nVipsPel *data = (VipsPel *) VIPS_MALLOC(NULL, data_size + BMP_FILE_HEADER_LEN);\nvoid *actual_data = data + BMP_FILE_HEADER_LEN;\n\nif (vips_foreign_load_read_full(ico->source, actual_data, data_size) <= 0) {\n  vips_error(\"vips_foreign_load_ico_header\", \"unable to read ICO image data from the source\");\n  return -1;\n}\n```\n\nThe crafted directory entry contains:\n\n```text\ndata_size       = 0xfffffff5 (4294967285)\ndata_offset     = 22\nBMP header size = 14\n32-bit result   = (0","public_affected_ranges":[">= 4.0.0, < 4.0.16"]}],"null_published_at":"2026-10-31T22:13:27.122Z","source_updated_at":"2026-10-30T22:57:03.000Z","source_disclosed_at":"2026-10-30T22:57:00.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T21:55:49.621Z"}],"next_cursor":null,"snapshot_revision":"42594"}