ADVISORIES

GitHub Advisory Database

GHSA-68jc-v27h-vhmw

Drupal core Unrestricted Upload of File with Dangerous Type

Details

Drupal core does not properly sanitize certain filenames on uploaded files, which can lead to files being interpreted as the incorrect extension and served as the wrong MIME type or executed as PHP for certain hosting configurations. This issue affects: Drupal Drupal Core 9.0 versions prior to 9.0.8, 8.9 versions prior to 8.9.9, 8.8 versions prior to 8.8.11, and 7 versions prior to 7.74.

Affected packages

EcosystemPackageAffected versions
Packagistdrupal/core
From 9.0.0 before 9.0.8 (fixed in 9.0.8)
Packagistdrupal/core
From 8.9.0 before 8.9.9 (fixed in 8.9.9)
Packagistdrupal/core
From 8.0.0 before 8.8.11 (fixed in 8.8.11)
Packagistdrupal/core
From 7.0.0 before 7.74 (fixed in 7.74)
Packagistdrupal/drupal
From 7.0.0 before 7.74 (fixed in 7.74)
Packagistdrupal/drupal
From 8.0.0 before 8.8.11 (fixed in 8.8.11)
Packagistdrupal/drupal
From 8.9.0 before 8.9.9 (fixed in 8.9.9)
Packagistdrupal/drupal
From 9.0.0 before 9.0.8 (fixed in 9.0.8)

References