CVE-2026-61457

High

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.

SeverityHigh
CVSS8.8
Exploit probability—
ProductGrav
PublishedJul 15, 2026
First seenJul 15, 2026

How to fix

Update
  • getgrav grav1.0.3 or later

Affected products

ProductAffected versionsFixed in
getgrav gravv < 1.0.31.0.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-61457 · Grav · Dark Radar