cve.bz

CVE-2020-13671 Drupal core Un-restricted Upload of File

8.8 highKEVEPSS 33%Fix available

High (8.8) in Drupal Drupal core. In CISA KEV since 2022-01-18. EPSS 33% estimated probability of exploitation activity in the next 30 days. Fixed in drupal/core 7.74, 8.8.11, 8.9.9.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
33% (unchanged from 33% a week ago; 36% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2022-01-18, due 2022-07-18
CISA's assessment (SSVC)
Exploitation: active · Automatable: no · Technical impact: total, assessed 2025-02-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-434 Unrestricted Upload of File with Dangerous Type
OWASP Top 10
A06:2025 Insecure Design
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-13671 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-13671?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-13671?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-13671 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
drupal:drupalfrom 7.0 before 7.74
drupal:drupalfrom 8.8.0 before 8.8.11
drupal:drupalfrom 8.9.0 before 8.9.9
drupal:drupalfrom 9.0.0 before 9.0.8
fedoraproject:fedora32
fedoraproject:fedora33

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
DRUPAL-CORE-2020-012Packagistdrupal/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
GHSA-68jc-v27h-vhmwPackagistdrupal/core>=9.0.0 <9.0.89.0.8
GHSA-68jc-v27h-vhmwPackagistdrupal/core>=8.9.0 <8.9.98.9.9
GHSA-68jc-v27h-vhmwPackagistdrupal/core>=8.0.0 <8.8.118.8.11
GHSA-68jc-v27h-vhmwPackagistdrupal/core>=7.0.0 <7.747.74
GHSA-68jc-v27h-vhmwPackagistdrupal/drupal>=7.0.0 <7.747.74
GHSA-68jc-v27h-vhmwPackagistdrupal/drupal>=8.0.0 <8.8.118.8.11
GHSA-68jc-v27h-vhmwPackagistdrupal/drupal>=8.9.0 <8.9.98.9.9
GHSA-68jc-v27h-vhmwPackagistdrupal/drupal>=9.0.0 <9.0.89.0.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9drupal77.52-2+deb9u12DLA-2458-1
UbuntuPro:14.04:LTSdrupal77.26-1ubuntu0.1+esm2UBUNTU-CVE-2020-13671 USN-6981-2
UbuntuPro:16.04:LTSdrupal77.44-1ubuntu1~16.04.0+esm2UBUNTU-CVE-2020-13671 USN-6981-1
Alpinev3.11, v3.12, v3.13 and 7 moredrupal77.74-r0ALPINE-CVE-2020-13671

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • d4ytox/CVE-2020-13671 Harbor Check: matches CVE 1 star, Python, created
    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.p…
  • ivanesk315/CVE-2020-13671 Harbor Check: matches CVE 0 stars, PHP, created
  • Dungsocool/CVE-2020-13671 Harbor Check: matches CVE 0 stars, PHP, created
    CVE-2020-13671 - Drupal RCE via File Upload Vulnerability Analysis and PoC
  • Dungsocool/CVE-2020-13671-old Harbor Check: matches CVE 0 stars, PHP, created
    CVE-2020-13671 - Drupal RCE via File Upload Vulnerability Analysis and PoC

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON