Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/getgrav/grav/security/advisories/GHSA-66v2-vxxf-xc3v
- https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-file-
- https://github.com/getgrav/grav/security/advisories/GHSA-66v2-vxxf-xc3v
FAQ
What is CVE-2026-61457?
CVE-2026-61457 is a vulnerability with a CVSS score of 8.8 (HIGH). 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 fil...
How severe is CVE-2026-61457?
CVE-2026-61457 has been rated HIGH with a CVSS base score of 8.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-61457?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.