CVE-2020-13671 in Drupal and 1 more product
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 pr...
Affects 2 products from 2 vendors. Facts below cite their sources.
Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Drupal | Drupal | ≥ 7.0, < 7.74 ≥ 8.8.0, < 8.8.11 ≥ 8.9.0, < 8.9.9 ≥ 9.0.0, < 9.0.8 |
| Fedoraproject | Fedora | 32 33 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Yes added 2022-01-18 |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2020-13671 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-277909-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| Published | 2020-11-20 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-434: Unrestricted Upload of File with Dangerous Type
Application allows file uploads without validating type, enabling upload of executable code or web shells.
Related attack patterns (CAPEC)
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-434
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
Drupal core suffers from a filename sanitization vulnerability that could allow an attacker to upload malicious files with incorrect extensions, leading to potential execution of arbitrary code or serving of content with incorrect MIME types. This issue affects multiple versions of Drupal and has a high CVSS score, indicating significant risk.
The vulnerability arises from improper sanitization of filenames during file uploads in Drupal core. An attacker can exploit this by uploading a file with a specially crafted name, which may be misinterpreted by the server, leading to execution of the file as PHP or serving it with an incorrect MIME type. This can result in remote code execution or other security issues.
Compensating controls AI-drafted, review before use
Implement strict file upload policies and validate file extensions and MIME types before storing or serving files. Use a secure file upload library or module to handle file uploads.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Questions
What is CVE-2020-13671?
Drupal core suffers from a filename sanitization vulnerability that could allow an attacker to upload malicious files with incorrect extensions, leading to potential execution of arbitrary code or serving of content with incorrect MIME types. This issue affects multiple versions of Drupal and has a high CVSS score, indicating significant risk.
What is the CVSS score for CVE-2020-13671?
CVE-2020-13671 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 32.6%.
Is CVE-2020-13671 actively exploited?
Yes. CVE-2020-13671 is in the CISA known-exploited catalog (added 2022-01-18). Active exploitation confirmed. Immediate patching required.
How do I remediate CVE-2020-13671?
Priority: HIGH. Advisory: https://www.drupal.org/sa-core-2020-012 PSIRT: [email protected]
What systems are affected by CVE-2020-13671?
CVE-2020-13671 affects Drupal Drupal; Fedoraproject Fedora.
What NERC-CIP standard applies to CVE-2020-13671?
NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to the system through the upload of malicious files, which can compromise the integrity and availability of the control system.
What IEC 62443 requirement maps to CVE-2020-13671?
IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves the protection of the system against unauthorized access and manipulation, which is critical for maintaining the security of industrial control systems.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Drupal","product":"Drupal","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.