GHSA-58xv-7h9r-mx3c: Drupal Malicious file upload with filenames stating with dot
Drupal 8 core's filesaveupload() function does not strip the leading and trailing dot ('.') from filenames, like Drupal 7 did. Users with the ability to upload files with any extension in conjunction with contributed modules may be able to use this to upload system files such as .htaccess in order to bypass protections afforded by Drupal's default .htaccess file.
Published May 15, 2024
Affected packages
drupal/drupal
- Ecosystem
- Composer (PHP)
- Affected
- >= 8.0.0, < 8.7.11
- Fixed in
- 8.7.11
- Check
composer show drupal/drupal
drupal/drupal
- Ecosystem
- Composer (PHP)
- Affected
- >= 8.8.0, < 8.8.1
- Fixed in
- 8.8.1
- Check
composer show drupal/drupal
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Drupal 8 core's file_save_upload() function does not strip the leading and trailing dot ('.') from filenames, like Drupal 7 did.
Users with the ability to upload files with any extension in conjunction with contributed modules may be able to use this to upload system files such as .htaccess in order to bypass protections afforded by Drupal's default .htaccess file.
After this fix, file_save_upload() now trims leading and trailing dots from filenames.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2024-12393
Drupal Core Cross-Site Scripting (XSS)
medium5.4Dec 10, 2024CVE-2024-55634
Drupal core Access bypass
medium6.9Dec 10, 2024CVE-2024-55636
Drupal core contains a potential PHP Object Injection vulnerability
low9.8Dec 10, 2024CVE-2024-55637
Drupal core contains a potential PHP Object Injection vulnerability
high9.8Dec 10, 2024CVE-2024-55638
Drupal core contains a potential PHP Object Injection vulnerability
high9.8Dec 10, 2024CVE-2024-45440
Drupal Full Path Disclosure
medium5.3Aug 29, 2024
