Skip to content
Server Security Center
KEVhigh8.8

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

Drupal core · listed in the CISA catalog of actively exploited vulnerabilities since 2022-01-18.

CVSS v3.1 (CVE record)
8.8
high
EPSS (exploit probability, 30 days)
33%
higher than 98.3% of all CVEs
Added to CISA KEV
2022-01-18
US federal due date 2022-07-18
Ubuntu priority
high

CVE-2020-13671 explained

CVE-2020-13671 is a flaw in Drupal core where certain filenames on uploaded files are not properly sanitized. Files can then be interpreted with the wrong extension, served as the wrong MIME type, or executed as PHP on certain hosting configurations. It is listed in CISA's Known Exploited Vulnerabilities catalog, so it should be treated as a priority.

Impact

An attacker with low privileges, such as an account allowed to upload files, can exploit this over the network without user interaction. On affected hosting configurations, uploaded files may be executed as PHP. That can lead to high impact on confidentiality, integrity and availability of the site and its server. Where PHP execution does not occur, files may still be served with an incorrect MIME type.

Who is affected

Upstream, Drupal core 9.0 before 9.0.8, 8.9 before 8.9.9, 8.8 before 8.8.11 and 7 before 7.74 are affected. In Ubuntu, the drupal7 source package is affected on Ubuntu 14.04 LTS and Ubuntu 16.04 LTS. Both releases are end of life. Fixes are available only through Ubuntu Pro (ESM): 7.26-1ubuntu0.1+esm2 for Ubuntu 14.04 LTS and 7.44-1ubuntu1~16.04.0+esm2 for Ubuntu 16.04 LTS.

Written with AI from the data on this page and checked against it automatically.

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.

CISA required action: Apply updates per vendor instructions.

CISA notes

Upstream versions (CVE record)

From the CVE record published by the vendor or CVE numbering authority.

  • Drupal Core
    Affected
    • 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
    not stated

    Version statement as published by the CNA (free text).

Ubuntu and Debian releases

A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.

What to do

  1. Identify systems running the drupal7 package or other Drupal core installations.
  2. On Ubuntu 14.04 LTS or 16.04 LTS with Ubuntu Pro, update drupal7 to the fixed ESM version.
  3. For Drupal installed outside Ubuntu packages, upgrade to 9.0.8, 8.9.9, 8.8.11 or 7.74 or later as appropriate.
  4. Restart the web server or PHP services so the updated code is used.
  5. Plan an upgrade from end-of-life Ubuntu releases to a supported release.
  6. Review previously uploaded files for unexpected extensions or executable content.

Written with AI from the data on this page and checked against it automatically.

Check and fix on a server

Run on each Ubuntu or Debian server. Replace drupal7 with the source package from the table above.

1. Show installed packages built from the source package, with their versions

dpkg-query -W -f='${binary:Package} ${Version} ${source:Package}\n' | awk '$3=="drupal7"'

2. Compare each installed version with the fixed version for your release from the table

I=INSTALLED_VERSION; F=FIXED_VERSION   # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac

3. Install the fix

sudo apt update && sudo apt install --only-upgrade $(dpkg-query -W -f='${binary:Package} ${source:Package}\n' | awk '$2=="drupal7"{print $1}')

Services keep running the old code until they are restarted – restart the affected service or check with needrestart.

Rows marked “fix via Ubuntu Pro”: these fixes are only installable with an Ubuntu Pro subscription (ESM). Attach the machine first (sudo pro attach, then sudo pro enable esm-infra esm-apps), then run the commands above.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
No – each attack needs manual steps
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-434 Unrestricted Upload of File with Dangerous Type

Questions about CVE-2020-13671

Is this vulnerability being exploited?
Yes. CISA added CVE-2020-13671 to its Known Exploited Vulnerabilities catalog on 2022-01-18, with the required action to apply updates per vendor instructions. Known ransomware use is listed as unknown.
Can I get the fix without Ubuntu Pro?
For Ubuntu 14.04 LTS and Ubuntu 16.04 LTS, the fixed drupal7 packages are published only through Ubuntu Pro (ESM). Both releases are end of life, so upgrading to a supported release is the long-term option.
Does an attacker need an account?
Yes. Exploitation requires low privileges, such as the ability to upload files, but no user interaction. Whether files can execute as PHP depends on the hosting configuration.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.