Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-112782 Overview
CVE-2026-112782 is a resource exhaustion vulnerability affecting Grav flat-file CMS versions 1.7.53 before 1.7.53.5 and 2.0.0-rc.8 before 2.2.2. The flaw allows anonymous network attackers to bypass the system.images.max_pixels limit when system.images.url_actions is enabled. By submitting single-dimension or percentage-based forceResize, zoomCrop, or chained image action parameters, attackers force the PHP GD library to allocate multi-gigabyte canvases. The resulting memory consumption exhausts server resources and takes the Grav site offline. The issue is categorized under [CWE-400: Uncontrolled Resource Consumption].
Critical Impact
Unauthenticated attackers can trigger memory exhaustion in Grav installations with URL image actions enabled, resulting in site-wide denial of service.
Affected Products
- Grav CMS 1.7.53 before 1.7.53.5
- Grav CMS 2.0.0-rc.8 before 2.2.2
- Grav instances with system.images.url_actions enabled
Discovery Timeline
- 2026-10-19 - CVE-2026-112782 published to NVD
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-112782
Vulnerability Analysis
Grav supports URL-based image manipulation actions that let visitors request transformations such as resize, crop, and zoom via query parameters. When system.images.url_actions is enabled, Grav processes these actions through the PHP GD imaging library. The system.images.max_pixels setting is intended to cap the output canvas size and prevent abusive requests.
The vulnerability stems from incomplete enforcement of that pixel ceiling. The affected code paths accept single-dimension values, percentage-based scaling, and chained actions that compute output dimensions in ways the limit check does not cover. Attackers craft requests where the final canvas resolves to billions of pixels. GD then allocates contiguous memory proportional to width times height times bytes-per-pixel, exceeding the PHP process memory limit and killing the worker.
Because requests are anonymous and arrive over standard HTTP, a small number of concurrent requests can saturate PHP-FPM workers and bring the site down.
Root Cause
The root cause is missing validation of derived image dimensions in the forceResize, zoomCrop, and chained action handlers. The max_pixels guard only inspects explicit two-dimension inputs. Single-value and percentage inputs bypass the check before reaching GD allocation.
Attack Vector
The attack is remote, network-based, and requires no authentication or user interaction. An attacker issues HTTP GET requests to any Grav-served image URL and appends chained image actions with abusive dimensions or percentages. Each request forces a multi-gigabyte GD allocation, exhausting memory on the host.
See the GitHub Security Advisory GHSA-8gr9-59p6-r488 and the VulnCheck Advisory for additional technical detail.
Detection Methods for CVE-2026-112782
Indicators of Compromise
- HTTP request logs containing image URLs with forceResize, zoomCrop, or chained action parameters using single-dimension or percentage values
- PHP error logs reporting Allowed memory size of X bytes exhausted tied to GD functions such as imagecreatetruecolor
- Repeated PHP-FPM worker crashes or restarts coinciding with image requests
- Sudden spikes in resident memory on the web server process
Detection Strategies
- Alert on web server access logs where image URLs include action query parameters with abnormally large numeric values or percentages above 100
- Correlate PHP out-of-memory errors with the originating request URI to confirm image-action abuse
- Baseline normal image request sizes and flag deviations exceeding expected canvas dimensions
Monitoring Recommendations
- Monitor PHP-FPM worker memory usage and crash counts on hosts serving Grav
- Track HTTP 500 and 502 response rates on image endpoints as a leading DoS indicator
- Forward web and PHP logs to a centralized analytics platform to enable correlation across request parameters, memory errors, and worker restarts
How to Mitigate CVE-2026-112782
Immediate Actions Required
- Upgrade Grav to version 1.7.53.5 or 2.2.2, whichever matches your release branch
- If upgrade is not immediate, set system.images.url_actions to false in system.yaml to disable URL-based image transformations
- Rate-limit anonymous requests to image paths at the reverse proxy or WAF layer
Patch Information
The Grav maintainers released fixes in versions 1.7.53.5 and 2.2.2. The patches enforce the max_pixels ceiling against derived dimensions produced by single-value, percentage, and chained actions. Refer to the GitHub Security Advisory GHSA-8gr9-59p6-r488 for commit references and release notes.
Workarounds
- Disable system.images.url_actions until the patched version is deployed
- Restrict access to image action endpoints via web server rules that reject requests containing forceResize, zoomCrop, or chained action parameters
- Lower the PHP memory_limit directive to contain the blast radius of individual GD allocations
# Configuration example: disable URL image actions in Grav system.yaml
images:
url_actions: false
max_pixels: 10000000
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

