Drupal Malicious file upload with filenames stating with dot
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/drupal | >= 8.0.0, < 8.7.11, >= 8.8.0, < 8.8.1 | 8.7.11, 8.8.1 |
| Drupal (core) | drupal/drupal | >= 8.0.0, < 8.7.11, >= 8.8.0, < 8.8.1 | 8.7.11, 8.8.1 |
References
- Weakness (CWE)
CWE-434- Platform
- Composer, Drupal
- Package
drupal/drupal- Disclosed
- 15.05.2024
- Updated
- 11.10.2026 11:18
Sources and licenses
OSV / GitHub Advisory Database - GHSA-58xv-7h9r-mx3c - CC BY 4.0
Vulnerability history: drupal/drupal
All published vulnerabilities of this package (Drupal (core)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 165
- First → latest
- 02.2018 09.2026
- Without a fix
- 3
- Exploited in attacks
- 5
Severity breakdown
- Critical 17
- High 44
- Medium 72
- Low 6
- Unrated 26
Disclosures per year
- 2018: 4
- 2019: 14
- 2020: 12
- 2021: 11
- 2022: 61
- 2023: 6
- 2024: 36
- 2025: 8
- 2026: 13
-
Drupal Malicious file upload with filenames stating with dot this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.