{"id":"CVE-2021-43617","aliases":["CVE-2021-43617","GHSA-364w-9g92-3grq"],"related":[],"kind":"vulnerability","state":"published","title":"Laravel Framework through 8.70.2 does not sufficiently block the upload of executable PHP content because Illuminate/Validation/Concerns/Va…","summary":"Laravel Framework through 8.70.2 does not sufficiently block the upload of executable PHP content because Illuminate/Validation/Concerns/ValidatesAttributes.php lacks a check for .phar files, which are handled as application/x-httpd-php on systems based on Debian. NOTE: this CVE Record is for Laravel Framework, and is unrelated to any reports concerning incorrectly written user applications for image upload.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Laravel Framework through 8.70.2 does not sufficiently block the upload of executable PHP content because Illuminate/Validation/Concerns/ValidatesAttributes.php lacks a check for .phar files, which are handled as application/x-httpd-php on systems based on Debian. NOTE: this CVE Record is for Laravel Framework, and is unrelated to any reports concerning incorrectly written user applications for image upload.","source":"cvelist"},{"lang":"en","text":"# Withdrawn\n\nThis advisory has been withdrawn after the maintainers of Laravel noted this issue is not a security vulnerability with Laravel itself, but rather a userland issue.\n\n## Original CVE based description\n\nLaravel Framework through 8.70.2 does not sufficiently block the upload of executable PHP content because Illuminate/Validation/Concerns/ValidatesAttributes.php lacks a check for .phar files, which are handled as application/x-httpd-php on systems based on Debian. In some use cases, this may be related to file-type validation for image upload (e.g., differences between getClientOriginalExtension and other approaches).","format":"markdown","source":"ghsa"},{"lang":"es","text":"Laravel Framework hasta la versión 8.70.2 no bloquea suficientemente la subida de contenido PHP ejecutable porque Illuminate/Validation/Concerns/ValidatesAttributes.php carece de una comprobación para los archivos .phar, que se manejan como application/x-httpd-php en sistemas basados en Debian. NOTA: este registro CVE es para Laravel Framework, y no está relacionado con ningún informe sobre aplicaciones de usuario escritas incorrectamente para la carga de imágenes","source":"nvd"}],"published":"2021-11-14T15:32:39.000Z","modified":"2026-09-10T03:49:09.430Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-434"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"8.70.2"}],"ecosystem":"Packagist","package":"laravel/framework","purl":"pkg:composer/laravel/framework","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"8.70.2"}],"vendor":"laravel","product":"framework","cpe":"cpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/laravel/framework/blob/2049de73aa099a113a287587df4cc522c90961f5/src/Illuminate/Validation/Concerns/ValidatesAttributes.php#L1331-L1333","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://salsa.debian.org/php-team/php/-/commit/dc253886b5b2e9bc8d9e36db787abb083a667fd8","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://salsa.debian.org/php-team/php/-/blob/dc253886b5b2e9bc8d9e36db787abb083a667fd8/debian/php-cgi.conf#L5-6","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43617","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/laravel/framework","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/laravel/framework/blob/2049de73aa099a113a287587df4cc522c90961f5/src/Illuminate/Validation/Concerns/ValidatesAttributes.php#L1130-L1132","tags":["web"],"sources":["ghsa"]},{"url":"https://hosein-vita.medium.com/laravel-8-x-image-upload-bypass-zero-day-852bd806019b","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-43617","url":"https://www.cve.org/CVERecord?id=CVE-2021-43617","licence":"CVE Terms of Use","modified":"2024-08-04T04:03:08.437Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-364w-9g92-3grq","url":"https://github.com/advisories/GHSA-364w-9g92-3grq","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:09.430Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-43617","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43617","licence":"Public domain","modified":"2026-06-17T04:11:12.143Z"}],"updatedAt":"2026-11-25T22:24:36.005Z","epss":{"score":0.19963,"percentile":0.97494,"date":"2026-12-01T12:00:22.000Z"}}