Read the docs
TI-2024-38606 Aliases GHSA-7gwj-7fhm-vw4w

Drupal core unrestricted file upload

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/core (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/core (Packagist)8.0.0 to before 8.7.118.7.11Patch availableGHSA-7gwj-7fhm-vw4w
—drupal/core (Packagist)8.8.0 to before 8.8.18.8.1Patch availableGHSA-7gwj-7fhm-vw4w
  • drupal/core (Packagist) Vendor— Affected 8.0.0 to before 8.7.11 Fixed in 8.7.11 Patch available GHSA-7gwj-7fhm-vw4w
  • drupal/core (Packagist) Vendor— Affected 8.8.0 to before 8.8.1 Fixed in 8.8.1 Patch available GHSA-7gwj-7fhm-vw4w

Remediation

  • Fix · GHSA-7gwj-7fhm-vw4w drupal/core (Packagist) Fixed in 8.7.11 Advisory →
  • Fix · GHSA-7gwj-7fhm-vw4w drupal/core (Packagist) Fixed in 8.8.1 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-7gwj-7fhm-vw4w

References

Sources

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