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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| 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, 7 versions prior to 7.74 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 9 | drupal7 | 7.52-2+deb9u12 | DLA-2458-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 16.04 LTS | drupal7 | 7.44-1ubuntu1~16.04.0+esm2 | USN-6981-1 |
| Ubuntu Pro 14.04 LTS | drupal7 | 7.26-1ubuntu0.1+esm2 | USN-6981-2 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.20 | drupal7 | 7.74-r0 | — |
| Alpine v3.19 | drupal7 | 7.74-r0 | — |
| Alpine v3.18 | drupal7 | 7.74-r0 | — |
| Alpine v3.17 | drupal7 | 7.74-r0 | — |
| Alpine v3.16 | drupal7 | 7.74-r0 | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.15 | drupal7 | 7.74-r0 | — |
| Alpine v3.14 | drupal7 | 7.74-r0 | — |
| Alpine v3.13 | drupal7 | 7.74-r0 | — |
| Alpine v3.12 | drupal7 | 7.74-r0 | — |
| Alpine v3.11 | drupal7 | 7.74-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 4 repositories
-
d4ytox/CVE-2020-13671 ★ 1 · Nov 10, 2026
Unrestricted file upload to RCE in Drupal core (<7.74, <8.8.11, <8.9.9, <9.0.8). Drupal never munges a bare dangerous extension, so shell.php survives as shell.php.txt. Anonymous registration and aut…
-
ivanesk315/CVE-2020-13671 ★ 0 · Sep 10, 2026
-
Dungsocool/CVE-2020-13671 ★ 0 · Aug 22, 2026
CVE-2020-13671 - Drupal RCE via File Upload Vulnerability Analysis and PoC
-
Dungsocool/CVE-2020-13671-old ★ 0 · Aug 22, 2026
CVE-2020-13671 - Drupal RCE via File Upload Vulnerability Analysis and PoC
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | drupal/core | >= 8.0.0, < 8.8.11 · >= 8.9.0, < 8.9.9 · >= 9.0.0, < 9.0.8 | 8.8.11, 8.9.9, 9.0.8 | DRUPAL-CORE-2020-012 |
| Packagist | drupal/core | >= 9.0.0, < 9.0.8 | 9.0.8 | GHSA-68jc-v27h-vhmw |
| Packagist | drupal/core | >= 8.9.0, < 8.9.9 | 8.9.9 | GHSA-68jc-v27h-vhmw |
| Packagist | drupal/core | >= 8.0.0, < 8.8.11 | 8.8.11 | GHSA-68jc-v27h-vhmw |
| Packagist | drupal/core | >= 7.0.0, < 7.74 | 7.74 | GHSA-68jc-v27h-vhmw |
| Packagist | drupal/drupal | >= 7.0.0, < 7.74 | 7.74 | GHSA-68jc-v27h-vhmw |
| Packagist | drupal/drupal | >= 8.0.0, < 8.8.11 | 8.8.11 | GHSA-68jc-v27h-vhmw |
| Packagist | drupal/drupal | >= 8.9.0, < 8.9.9 | 8.9.9 | GHSA-68jc-v27h-vhmw |
| Packagist | drupal/drupal | >= 9.0.0, < 9.0.8 | 9.0.8 | GHSA-68jc-v27h-vhmw |
Advisories 4
- WID-SEC-2024-1938 Drupal: Schwachstelle ermöglicht Ausführen von beliebigem Programmcode mit den Rechten des Dienstes BSI CERT-Bund (WID) · Aug 23, 2026
- USN-6981-2 drupal7 vulnerabilities Ubuntu Security Notices (USN) · Jun 29, 2026
- USN-6981-1 drupal7 vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- DLA-2458-1 drupal7 - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://www.drupal.org/sa-core-2020-012
- FEDORA-2020-6f1079934c vendor-advisory
- FEDORA-2020-d50d74d6f2 vendor-advisory