{"id":"CVE-2026-61457","published":"2026-07-15T11:25:46Z","modified":"2026-07-28T13:02:11Z","title":"Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass","vendor":"getgrav","product":"grav","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00613,"percentile":0.50281,"provenance":"source"},"cwes":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-66v2-vxxf-xc3v","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-file-upload-extension-bypass","tags":["third-party-advisory"]}],"priority":{"score":16.2,"factors":[{"name":"EPSS percentile","points":10.06},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"getgrav","affectedVersions":[{"vendor":"getgrav","product":"grav","versions":["< 1.0.3"]}],"fixedVersions":[{"vendor":"getgrav","product":"grav","versions":["1.0.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-15T12:12:45.122123Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-44651","exploited":false,"provenance":"source"}}