CVE Catalog

CVE-2026-61457

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.46%

37th percentile - higher than 37% of all known CVEs

Summary

The Grav API plugin before version 1.0.3 contains a file upload extension bypass vulnerability. The validation function only checks the final extension, allowing a user with api.media.write permission to upload a file with a double extension like shell.php.jpg, bypassing the dangerous extensions blocklist. This can lead to remote code execution if the web server processes the file as PHP.

Risk Assessment

The organization is at risk of remote code execution by an attacker with api.media.write permissions, potentially leading to server compromise and data breach.

Recommendation

Immediately update the Grav API plugin to version 1.0.3 or later, which includes a fix for this vulnerability.

Other vulnerabilities in Grav API plugin

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS