# Grav: Unauthenticated denial of service via unbounded image derivative dimensions

High severity, published 2026-08-14. Update getgrav/grav to the fixed version of your branch (2.0.0-rc.8, 1.7.53): composer update getgrav/grav.

Canonical URL: https://buzzphp.com/security/ghsa-4x9g-vw65-vvf9 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-08-14 |
| Updated | 2026-08-14 |
| CVE | [CVE-2026-53653](https://nvd.nist.gov/vuln/detail/CVE-2026-53653) |
| GHSA | [GHSA-4x9g-vw65-vvf9](https://github.com/advisories/GHSA-4x9g-vw65-vvf9) |
| Weakness | CWE-770 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| getgrav/grav | >= 2.0.0-beta.1, < 2.0.0-rc.8 or < 1.7.53 | 2.0.0-rc.8, 1.7.53 |

## What to do

Update getgrav/grav to the fixed version of your branch (2.0.0-rc.8, 1.7.53): composer update getgrav/grav.

Check which version you run with `composer show getgrav/grav`, and every affected package with `composer audit`.

## About this advisory

Summary An unauthenticated visitor exhausts server memory and CPU by requesting an image with oversized resize dimensions. One request drives a worker to several gigabytes of RAM and tens of seconds of CPU. A few concurrent requests take the host down.

Details Grav::fallbackUrl() (system/src/Grav/Common/Grav.php:800-804) loops over every query parameter and, when the name matches ImageMedium::$magicactions, calls that method on the medium with the comma-split value as arguments:

forceResize runs with force=true, so it sets the output size to the attacker's values with no clamp against the source or any ceiling. The getgrav/image GD adapter then calls imagecreatetruecolor($w, $h).

## Links

- [GHSA-4x9g-vw65-vvf9 on GitHub](https://github.com/advisories/GHSA-4x9g-vw65-vvf9)
- [CVE-2026-53653 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-53653)
- [All Composer security advisories](https://buzzphp.com/security)
