Advisory

GHSA-68jc-v27h-vhmw

Also known as: BIT-drupal-2020-13671, CVE-2020-13671, DRUPAL-CORE-2020-012

Summary

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-10-12 16:28 UTC
Modified
2025-12-10 23:41 UTC

Affected packages and fixes

drupal/core

Packagist · All systems

Affected

  • introduced 9.0.0, fixed 9.0.8 (ecosystem)

Fixed versions

9.0.8

Fix

The export has no generic command for this ecosystem.

drupal/core

Packagist · All systems

Affected

  • introduced 8.9.0, fixed 8.9.9 (ecosystem)

Fixed versions

8.9.9

Fix

The export has no generic command for this ecosystem.

drupal/core

Packagist · All systems

Affected

  • introduced 8.0.0, fixed 8.8.11 (ecosystem)

Fixed versions

8.8.11

Fix

The export has no generic command for this ecosystem.

drupal/core

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.74 (ecosystem)

Fixed versions

7.74

Fix

The export has no generic command for this ecosystem.

drupal/drupal

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.74 (ecosystem)

Fixed versions

7.74

Fix

The export has no generic command for this ecosystem.

drupal/drupal

Packagist · All systems

Affected

  • introduced 8.0.0, fixed 8.8.11 (ecosystem)

Fixed versions

8.8.11

Fix

The export has no generic command for this ecosystem.

drupal/drupal

Packagist · All systems

Affected

  • introduced 8.9.0, fixed 8.9.9 (ecosystem)

Fixed versions

8.9.9

Fix

The export has no generic command for this ecosystem.

drupal/drupal

Packagist · All systems

Affected

  • introduced 9.0.0, fixed 9.0.8 (ecosystem)

Fixed versions

9.0.8

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences