# CVE-2026-61457: Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass

- Severity: Medium 5.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-15T11:25:46.519Z
- Modified: 2026-10-24T21:10:00.130Z
- Weaknesses: CWE-434
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- getgrav grav: before 1.0.3 (not affected: 1.0.3)

## Every score

- VulnCheck: CVSS:4.0 5.3 Medium `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`
- VulnCheck: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/getgrav/grav/security/advisories/GHSA-66v2-vxxf-xc3v> (exploit, vendor-advisory)
- <https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-file-upload-extension-bypass> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-61457](https://www.cve.org/CVERecord?id=CVE-2026-61457), CVE Terms of Use, modified 2026-07-28
- NVD: [CVE-2026-61457](https://nvd.nist.gov/vuln/detail/CVE-2026-61457), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-61457 · Whole record: https://cve.day/CVE-2026-61457.json · Rebuilt by cve.day 2026-11-25T22:59:28.278Z
