Unrestricted Upload of File with Dangerous Type Affecting php-laravel-framework package, versions <6.20.14+dfsg-3
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-DEBIAN12-PHPLARAVELFRAMEWORK-1921210
- published 16 Nov 2021
- disclosed 14 Nov 2021
Introduced: 14 Nov 2021
CVE-2021-43617 Open this link in a new tabHow to fix?
Upgrade Debian:12
php-laravel-framework
to version 6.20.14+dfsg-3 or higher.
NVD Description
Note: Versions mentioned in the description apply only to the upstream php-laravel-framework
package and not the php-laravel-framework
package as distributed by Debian
.
See How to fix?
for Debian:12
relevant fixed versions and status.
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.
References
- https://security-tracker.debian.org/tracker/CVE-2021-43617
- https://github.com/laravel/framework/blob/2049de73aa099a113a287587df4cc522c90961f5/src/Illuminate/Validation/Concerns/ValidatesAttributes.php#L1130-L1132
- https://github.com/laravel/framework/blob/2049de73aa099a113a287587df4cc522c90961f5/src/Illuminate/Validation/Concerns/ValidatesAttributes.php#L1331-L1333
- https://hosein-vita.medium.com/laravel-8-x-image-upload-bypass-zero-day-852bd806019b
- https://salsa.debian.org/php-team/php/-/blob/dc253886b5b2e9bc8d9e36db787abb083a667fd8/debian/php-cgi.conf#L5-6
- https://salsa.debian.org/php-team/php/-/commit/dc253886b5b2e9bc8d9e36db787abb083a667fd8