CVE-2020-13671: Drupal core Unrestricted Upload of File with Dangerous Type
CVE-2020-13671 · Severity: critical · CVSS 3.1 · Exploited in the wild · Published 2021-10-12
Drupal core fails to properly sanitize filenames on uploaded files, allowing files with multiple extensions to bypass security filters. This can lead to files being executed as PHP or served with incorrect MIME types, potentially resulting in remote code execution depending on the hosting configuration.
Yes. drupal/core (Packagist): upgrade to 8.8.11, 9.0.8 or later; drupal/drupal (Packagist): upgrade to 7.74 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2020-13671 attacked?
It is attacked over the network, in a web application.
Am I affected by CVE-2020-13671?
Check whether you run Drupal Core, drupal/core (Packagist) or drupal/drupal (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
drupal/core (Packagist): upgrade to 8.8.11, 9.0.8 or later
composer require drupal/core:^9.0.8
drupal/drupal (Packagist): upgrade to 7.74 or later
composer require drupal/drupal:^7.74
Affected products
Drupal Drupal Core 7 versions prior to 7.74, 8.8 versions prior to 8.8.11, 8.9 versions prior to 8.9.9, 9.0 versions prior to 9.0.8
Identifiers
CVE-2020-13671
DRUPAL-CORE-2020-012
GHSA-68jc-v27h-vhmw
Timeline
2020-11-18: advisory: Original vendor advisory SA-CORE-2020-012 published
2022-01-18: kev added: Added to CISA Known Exploited Vulnerabilities Catalog