CVE-2026-61457CWE-434

Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass

Medium · published July 15, 2026

CVSS v4.0
5.3
EPSS
1%
Percentile
57.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
5.3 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS
0.00835 · 57.3th percentile
Weakness
CWE-434 · Unrestricted Upload of File with Dangerous Type
Published
2026-07-15T11:25Z
EPSS history
Timeline
  • 15 JUL 11:25Z
    Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass
    cvelistv5