---
id: "CVE-2026-112782"
kind: "vulnerability"
aliases: ["CVE-2026-112782"]
title: "Grav CMS: anonymous image resize requests exhaust server memory and crash sites"
severity: "high"
cvss: 8.7
epss: null
exploited: false
status: "open"
category: "runtime"
products: []
ecosystems: []
tags: ["grav", "php", "runtime", "self-hosted"]
not_affected_if: ["patched-version", "url-actions-disabled"]
published_at: "2026-10-19T20:17:55+00:00"
first_seen_at: "2026-10-23T21:57:19+00:00"
updated_at: "2026-10-23T22:37:25+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-112782", "first_seen_at": "2026-10-23T21:57:19+00:00"}]
---

# Grav CMS: anonymous image resize requests exhaust server memory and crash sites

Grav CMS builds image canvases in GD from URL parameters without enforcing its pixel limit when url_actions is on. An anonymous visitor can request huge resize or crop sizes and make the server allocate gigabytes of memory, taking the site down.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

Check whether system.images.url_actions is enabled in the Grav system configuration (user/config/system.yaml).
Check the installed version: bin/gpm version or the version line in the admin panel.

## Fix

Upgrade Grav 1.7.x to 1.7.53.5 or later, or Grav 2.x to 2.2.2 or later.
Until upgraded, set system.images.url_actions to false.

## Timeline

- 2026-10-23T21:57:19+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-112782

## From the sources

Grav 1.7.53 before 1.7.53.5 and 2.0.0-rc.8 before 2.2.2 contains a resource exhaustion vulnerability that allows anonymous visitors to bypass the system.images.max_pixels limit when system.images.url_actions is enabled. Attackers can send single-dimension or percentage forceResize, zoomCrop, or chained image actions to make GD allocate multi-gigabyte canvases, exhausting server memory and taking the site down.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
