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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:*

History

18 Nov 2021, 16:21

Type Values Removed Values Added
CPE cpe:2.3:a:laravel:framework:*:*:*:*:*:*:*:*
CWE CWE-434
CVSS v2 : unknown
v3 : unknown
v2 : 7.5
v3 : 9.8
References (MISC) https://salsa.debian.org/php-team/php/-/commit/dc253886b5b2e9bc8d9e36db787abb083a667fd8 - (MISC) https://salsa.debian.org/php-team/php/-/commit/dc253886b5b2e9bc8d9e36db787abb083a667fd8 - Patch, Third Party Advisory
References (MISC) https://salsa.debian.org/php-team/php/-/blob/dc253886b5b2e9bc8d9e36db787abb083a667fd8/debian/php-cgi.conf#L5-6 - (MISC) https://salsa.debian.org/php-team/php/-/blob/dc253886b5b2e9bc8d9e36db787abb083a667fd8/debian/php-cgi.conf#L5-6 - Patch, Third Party Advisory
References (MISC) https://github.com/laravel/framework/blob/2049de73aa099a113a287587df4cc522c90961f5/src/Illuminate/Validation/Concerns/ValidatesAttributes.php#L1331-L1333 - (MISC) https://github.com/laravel/framework/blob/2049de73aa099a113a287587df4cc522c90961f5/src/Illuminate/Validation/Concerns/ValidatesAttributes.php#L1331-L1333 - Third Party Advisory

17 Nov 2021, 18:15

Type Values Removed Values Added
References
  • {'url': 'https://hosein-vita.medium.com/laravel-8-x-image-upload-bypass-zero-day-852bd806019b', 'name': 'https://hosein-vita.medium.com/laravel-8-x-image-upload-bypass-zero-day-852bd806019b', 'tags': [], 'refsource': 'MISC'}
  • {'url': 'https://github.com/laravel/framework/blob/2049de73aa099a113a287587df4cc522c90961f5/src/Illuminate/Validation/Concerns/ValidatesAttributes.php#L1130-L1132', 'name': 'https://github.com/laravel/framework/blob/2049de73aa099a113a287587df4cc522c90961f5/src/Illuminate/Validation/Concerns/ValidatesAttributes.php#L1130-L1132', 'tags': [], 'refsource': 'MISC'}
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. In some use cases, this may be related to file-type validation for image upload (e.g., differences between getClientOriginalExtension and other approaches). 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.

14 Nov 2021, 16:15

Type Values Removed Values Added
New CVE

Information

Published : 2021-11-14 16:15

Updated : 2023-12-10 14:09


NVD link : CVE-2021-43617

Mitre link : CVE-2021-43617

CVE.ORG link : CVE-2021-43617


JSON object : View

Products Affected

laravel

  • framework
CWE
CWE-434

Unrestricted Upload of File with Dangerous Type