Arbitrary file upload in Laravel Framework
CVE-2021-43617
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.
Vulnerability class: Unrestricted File Upload
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.198 (97.4th percentile), scored .
Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 97th percentile — 97.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.198 · newest: 0.198 · change: 0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/laravel/framework/blob/2049de73aa099a113a287587df4cc522c90961f5/src/… (Third Party Advisory)
- salsa.debian.org/php-team/php/-/commit/dc253886b5b2e9bc8d9e36db787abb083a667fd8 (Patch, Third Party Advisory)
- salsa.debian.org/php-team/php/-/blob/dc253886b5b2e9bc8d9e36db787abb083a667fd8/d… (Patch, Third Party Advisory)
Frequently asked questions
- What is CVE-2021-43617?
- CVE-2021-43617 is a critical-severity vulnerability in Laravel Framework, classified under Unrestricted Upload of File with Dangerous Type. CVSS score: 9.8/10. Published 2021-11-14.
- How severe is CVE-2021-43617?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2021-43617 known to be exploited?
- 15 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.