CVEs / CVE-2020-13671
CVE-2020-13671: Drupal core Un-restricted Upload of File
- Known exploited in the CISA KEV catalog since 18 Jan 2022
- high 8.8 CVSS 3.1 (NVD)
- EPSS 36.1% chance of exploitation in the next 30 days, higher than 98% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2020-13671
Summary
Improper sanitization in the extension file names is present in Drupal core.
Description
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 and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Drupal Drupal Core | 9.0 versions prior to 9.0.8 | — |
| Drupal Drupal Core | 8.9 versions prior to 8.9.9 | — |
| Drupal Drupal Core | 8.8 versions prior to 8.8.11 | — |
| Drupal Drupal Core | 7 versions prior to 7.74 | — |
| Product | Affected | Fixed in |
|---|---|---|
| drupal/core (Packagist) | from 9.0.0, before 9.0.8 | 9.0.8 |
| drupal/core (Packagist) | from 8.9.0, before 8.9.9 | 8.9.9 |
| drupal/core (Packagist) | from 8.0.0, before 8.8.11 | 8.8.11 |
| drupal/core (Packagist) | from 7.0.0, before 7.74 | 7.74 |
| drupal/drupal (Packagist) | from 7.0.0, before 7.74 | 7.74 |
| drupal/drupal (Packagist) | from 8.0.0, before 8.8.11 | 8.8.11 |
| drupal/drupal (Packagist) | from 8.9.0, before 8.9.9 | 8.9.9 |
| drupal/drupal (Packagist) | from 9.0.0, before 9.0.8 | 9.0.8 |
Package versions from GHSA-68jc-v27h-vhmw.
Exploitation
| In CISA KEV since | 18 Jan 2022 |
|---|---|
| Due date for US federal agencies | 18 Jul 2022 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply updates per vendor instructions. |
Severity
| CVSS 3.1 | 8.8 highCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-434 |
References
- CVE-2020-13671 on NVD
- CVE-2020-13671 in the CISA KEV catalog
- CVE-2020-13671 on OSV
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5KSFM672XW3X6BR7TVKRD63SLZGKK437/ Mailing List, Release Notes
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KWM4CTMEGAC4I2CHYNJVSROY4CVXVEUT/ Mailing List, Release Notes
- https://www.drupal.org/sa-core-2020-012 Vendor Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-13671 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.