Read the docs
TI-2024-38616 Aliases GHSA-58xv-7h9r-mx3c

Drupal Malicious file upload with filenames stating with dot

Priority LOW 38CWE-434Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Code execution
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-434.

Summary

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.

Why it matters now

Fix Fixed drupal/drupal (Packagist): 8.7.11, 8.8.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—drupal/drupal (Packagist)8.0.0 to before 8.7.118.7.11Patch availableGHSA-58xv-7h9r-mx3c
—drupal/drupal (Packagist)8.8.0 to before 8.8.18.8.1Patch availableGHSA-58xv-7h9r-mx3c
  • drupal/drupal (Packagist) Vendor— Affected 8.0.0 to before 8.7.11 Fixed in 8.7.11 Patch available GHSA-58xv-7h9r-mx3c
  • drupal/drupal (Packagist) Vendor— Affected 8.8.0 to before 8.8.1 Fixed in 8.8.1 Patch available GHSA-58xv-7h9r-mx3c

Remediation

  • Fix · GHSA-58xv-7h9r-mx3c drupal/drupal (Packagist) Fixed in 8.7.11 Advisory →
  • Fix · GHSA-58xv-7h9r-mx3c drupal/drupal (Packagist) Fixed in 8.8.1 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-58xv-7h9r-mx3c

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences