# Grav CMS vulnerable to remote code execution via .zip file upload

High severity, published 2026-09-17. Update getgrav/grav to 2.0.13 or later: composer update getgrav/grav.

Canonical URL: https://buzzphp.com/security/ghsa-r94f-hx44-8jqf · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.8) |
| Published | 2026-09-17 |
| Updated | 2026-09-17 |
| CVE | [CVE-2026-72819](https://nvd.nist.gov/vuln/detail/CVE-2026-72819) |
| GHSA | [GHSA-r94f-hx44-8jqf](https://github.com/advisories/GHSA-r94f-hx44-8jqf) |
| Weakness | CWE-94 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| getgrav/grav | < 2.0.13 | 2.0.13 |

## What to do

Update getgrav/grav to 2.0.13 or later: 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

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.

## Links

- [GHSA-r94f-hx44-8jqf on GitHub](https://github.com/advisories/GHSA-r94f-hx44-8jqf)
- [CVE-2026-72819 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-72819)
- [All Composer security advisories](https://buzzphp.com/security)
