Skip to content
OpenAdvisories
High · 8.8 CVE-2026-61457 EUVD-2026-44651GHSA-7wcr-m737-mchr

Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass

Published Jul 15, 2026 · Updated Jul 28, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
getgrav grav < 1.0.3 1.0.3

References