PT-2026-60148 · Grav · Grav-Plugin-Api

·

CVE-2026-61457

·

Published

2026-07-15

·

Updated

2026-07-15

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Grav API plugin versions prior to 1.0.3
Description A file upload extension bypass exists in the API media controller. The function validateFileExtension() only inspects the final file extension using pathinfo($filename, PATHINFO EXTENSION), allowing a user with api.media.write permission to upload files with double extensions, such as shell.php.jpg, to bypass the blocklist of dangerous extensions. This can lead to remote code execution if the web server executes the uploaded file as PHP.
Recommendations Update Grav API plugin to version 1.0.3 or later.

Exploit

Fix

Unrestricted File Upload

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-61457
GHSA-66V2-VXXF-XC3V

Affected Products

Grav-Plugin-Api