CVE-2026-61457

published 15 Jul 2026 · updated 28 Jul 2026

Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass

8.8HighCVSS 8.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 1.0.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
getgrav<1.0.31.0.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-61457 severity on Zeptric[![CVE-2026-61457](https://zeptric.io/badge/cve/CVE-2026-61457.svg)](https://zeptric.io/cve/CVE-2026-61457)