CVE-2020-13671 — Vulnerability in drupal/drupal — CVE Details
Drupal core Unrestricted Upload of File with Dangerous Type
What Should I Do?
Patch Immediately
This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.
Does your project use an affected drupal/drupal version?
Paste your composer.lock to check it for CVE-2020-13671 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published October 12, 2021 (1871 days ago).
- Last revised December 10, 2025 — 1520 days after initial publication.
- Added to CISA's Known Exploited Vulnerabilities catalog 97 days after publication.
Remediation
Upgrade to the fixed version using your package manager.
composer require "drupal/drupal:^7.74"
composer require "drupal/drupal:^9.0.8"
composer require "drupal/core:^7.74"
composer require "drupal/drupal:^8.9.9"
composer require "drupal/core:^9.0.8"
composer require "drupal/core:^8.9.9"
composer require "drupal/drupal:^8.8.11"
composer require "drupal/core:^8.8.11"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (8)
Affects 1 ecosystem: Packagist (2).
| Package | Fixed In |
|---|---|
| drupal/drupal Packagist · Affected: All versions | 7.74 |
| drupal/drupal Packagist · Affected: 9.0.0, 9.0.1, 9.0.2, 9.0.3 (+4 more) | 9.0.8 |
| drupal/core Packagist · Affected: All versions | 7.74 |
| drupal/drupal Packagist · Affected: 8.9.0, 8.9.1, 8.9.2, 8.9.3 (+5 more) | 8.9.9 |
| drupal/core Packagist · Affected: 9.0.0, 9.0.1, 9.0.2, 9.0.3 (+4 more) | 9.0.8 |
| drupal/core Packagist · Affected: 8.9.0, 8.9.1, 8.9.2, 8.9.3 (+5 more) | 8.9.9 |
| drupal/drupal Packagist · Affected: 8.0.0, 8.0.1, 8.0.2, 8.0.3 (+134 more) | 8.8.11 |
| drupal/core Packagist · Affected: 8.0.0, 8.0.1, 8.0.2, 8.0.3 (+134 more) | 8.8.11 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-434Unrestricted File UploadMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-13671ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2020-13671.yamlWEB
- https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2020-13671.yamlWEB
- https://github.com/drupal/corePACKAGE
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5KSFM672XW3X6BR7TVKRD63SLZGKK437WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KWM4CTMEGAC4I2CHYNJVSROY4CVXVEUTWEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/5KSFM672XW3X6BR7TVKRD63SLZGKK437WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KWM4CTMEGAC4I2CHYNJVSROY4CVXVEUTWEB
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2020-13671WEB
- https://www.drupal.org/sa-core-2020-012WEB
Frequently Asked Questions
- What is CVE-2020-13671?
- Drupal core Unrestricted Upload of File with Dangerous Type. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2020-13671?
- CVE-2020-13671 affects drupal/drupal and drupal/core. It has a 32.6% probability of exploitation within 30 days (EPSS score). This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-13671 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top 5% of EPSS-scored vulnerabilities — 98.7% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.
Added to KEV catalog: January 18, 2022
Remediation deadline: July 18, 2022
Also Known As
Related CVEs
- CVE-2018-7602CRITICAL
Drupal Core Remote Code Execution Vulnerability
- CVE-2018-7600CRITICAL
Drupal Core Remote Code Execution Vulnerability
- CVE-2019-6339CRITICAL
Arbitrary PHP code execution in Drupal
- CVE-2020-13665CRITICAL
Drupal Core Access bypass vulnerability
- CVE-2019-11831CRITICAL
Directory Traversal in typo3/phar-stream-wrapper
- CVE-2024-55637HIGH
Drupal core contains a potential PHP Object Injection vulnerability
- CVE-2020-13664HIGH
Drupal Core Arbitrary PHP code execution vulnerability
- CVE-2024-55636LOW
Drupal core contains a potential PHP Object Injection vulnerability