{"id":"CVE-2026-61457","aliases":["CVE-2026-61457"],"related":[],"kind":"vulnerability","state":"published","title":"Grav before 1.0.3 Remote Code Execution via File Upload Extension Bypass","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"El plugin API de Grav (getgrav/grav-plugin-api) anterior a la 1.0.3 contiene un bypass de extensión de carga de archivos en el controlador de medios de la API. HandlesMediaUploads::validateFileExtension() inspecciona solo la extensión de archivo final a través de pathinfo($filename, PATHINFO_EXTENSION), por lo que un usuario con permiso api.media.write puede cargar un archivo con una doble extensión como shell.php.jpg para eludir la lista de bloqueo de extensiones peligrosas. El servidor web puede entonces ejecutar el archivo como PHP, lo que resulta en ejecución remota de código.","source":"nvd"}],"published":"2026-07-15T11:25:46.519Z","modified":"2026-10-24T21:10:00.130Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":5.3,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-434"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.0.3","status":"affected"},{"type":"semver","version":"1.0.3","status":"unaffected"}],"vendor":"getgrav","product":"grav","source":"cvelist"}],"references":[{"url":"https://github.com/getgrav/grav/security/advisories/GHSA-66v2-vxxf-xc3v","tags":["exploit","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/grav-before-remote-code-execution-via-file-upload-extension-bypass","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["alienkeric"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-07-15T12:12:45.122Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61457","url":"https://www.cve.org/CVERecord?id=CVE-2026-61457","licence":"CVE Terms of Use","modified":"2026-07-28T13:02:11.039Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61457","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61457","licence":"Public domain","modified":"2026-10-24T21:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:28.278Z","epss":{"score":0.00613,"percentile":0.50696,"date":"2026-12-01T12:00:22.000Z"}}