Grav CMS vulnerable to remote code execution via .zip file upload
High severity. Published 17 September 2026. Update getgrav/grav to 2.0.13 or later: composer update getgrav/grav.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| getgrav/grav (opens in a new tab) | < 2.0.13 | 2.0.13 |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show getgrav/grav
composer auditAdvisory details
| Severity | HighCVSS 8.8 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-72819 (opens in a new tab) |
| GHSA | GHSA-r94f-hx44-8jqf (opens in a new tab) |
| Weakness | CWE-94 |
What the advisory says
Summary
A logged-in user can run any command on the server. A settings field can fill itself by calling one of Grav's built-in routines, and a safety check is supposed to allow only harmless ones. The check only recognises a routine when its name is written as one piece of text; named as a pair of values instead, it is not examined at all and is passed as safe. Pointing such a field at the routine that unpacks ZIP archives writes a PHP file from an uploaded archive into the site's public folder, which the server then runs.
Details
The check rejects known-dangerous routines and, for those belonging to a component, allows only a short approved list.
Source: GHSA-r94f-hx44-8jqf (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- Grav: config_denied_paths default list omits `system`, exposing real secrets (e.g. system.cache.redis.password) via the Twig sandbox when config_access is enabled (high, 17 September 2026)
- Grav: Missing admin.super guard on core group blueprint access field allows admin.users operator to escalate to super-admin (high, 17 September 2026)
- Grav: Path Traversal in ImageMedium::watermark() — arbitrary file disclosure via publicly-cached images (high, 17 September 2026)
- Grav: detectXss() misses an event-handler attribute after an unpaired quote in an unquoted attribute value, giving stored XSS (critical, 17 September 2026)
- Grav: Single invalid UTF-8 byte disables every rule in Security::detectXss(), bypassing the page-content XSS safety gate (opens in a new tab) (medium, 17 September 2026)