Arbitrary file upload in Getgrav Grav
CVE-2026-61457
The Grav API plugin (getgrav/grav-plugin-api) before 1.0.3 contains a file upload extension bypass in the API media controller. HandlesMediaUploads::validateFileExtension() inspects only the final file extension via pathinfo($filename, PATHINFO_EXTENSION), so a user with api.media.write permission can upload a file with a double extension such as shell.php.jpg to bypass the dangerous extensions blocklist. The web server may then execute the file as PHP, resulting in remote code execution.
Vulnerability class: Unrestricted File Upload
EPSS: 0.008 (54.7th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Getgrav Grav — versions 0, 1.0.3
Weakness classification (CWE)
References
- GitHub Security Advisory (GHSA-66v2-vxxf-xc3v) (vendor-advisory)
- VulnCheck Advisory: Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass (third-party-advisory)
Frequently asked questions
- What is CVE-2026-61457?
- CVE-2026-61457 is a high-severity vulnerability in Getgrav Grav, classified under Unrestricted Upload of File with Dangerous Type. CVSS score: 8.8/10. Published 2026-07-15.
- How severe is CVE-2026-61457?
- High severity. CVSS v3 base score is 8.8 out of 10.