What’s Vulnerable › Vulnerabilities
CVE-2026-61457: Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass
- Severity: high (CVSS 8.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-07-15 · updated 2026-10-24
- Weakness: CWE-434
Description
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.
Affected products
- getgrav grav: before 1.0.3 — fixed in 1.0.3
How to fix
Upgrade to a fixed version: getgrav grav 1.0.3. Check the vendor advisory for mitigations.
References
- https://github.com/getgrav/grav/security/advisories/GHSA-66v2-vxxf-xc3v
- https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-file-upload-extension-bypass
- https://github.com/getgrav/grav/security/advisories/GHSA-66v2-vxxf-xc3v
Get alerted when CVE-2026-61457 or the next vulnerability affects your stack