CVE-2026-61457
HIGH Exploitation: PoC
8.8
CVSS 3.1
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.
Metadata
Severity & Metrics
8.8
HIGH CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SSVC — CISA Coordinator
Affected products (1)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| getgrav | grav | — | 0 < 1.0.3, 1.0.3 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-434 | cna | Unrestricted Upload of File with Dangerous Type |
CVSS scores (2)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 8.8 | HIGH | 3.1 | cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 5.3 | MEDIUM | 4.0 | cna | 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 |
References (2)
- GitHub Security Advisory (GHSA-66v2-vxxf-xc3v) https://github.com/getgrav/grav/security/advisories/GHSA-66v2-vxxf-xc3v
- VulnCheck Advisory: Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-file-upload-extension-bypass