CVE-2020-13675 Unrestricted Upload of File with Dangerous Type in Drupal core

Critical 9.8 Published Updated

Attackers can bypass file validation in Drupal's JSON:API and REST/File modules to upload malicious files, requiring immediate patching.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-13675?

CVE-2020-13675 is a critical vulnerability in Drupal Drupal, published on 11 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Drupal's JSON:API and REST/File modules allow file uploads through their HTTP APIs. The modules do not correctly run all file validation, which causes an access bypass vulnerability. An attacker might be able to upload files that bypass the file validation process implemented by modules on the site.

Weakness: CWE-434, CWE-284

Which versions are affected by CVE-2020-13675?

8 open source packages ship an affected version, including drupal/core and drupal. It affects 1 product.

PackageAffectedFixed in
drupal/core PackagistFrom 8.0.08.9.19, 9.1.13, 9.2.6
drupal/core PackagistFrom 8.0.08.9.19
drupal/core PackagistFrom 8.0.08.9.19
drupal/core PackagistFrom 9.1.09.1.13
drupal/core PackagistFrom 9.1.09.1.13
drupal/core PackagistFrom 9.2.09.2.6
2 more packages
drupal/core PackagistFrom 9.2.09.2.6
drupal BitnamiFrom 8.0.08.9.19, 9.1.13, 9.2.6
Linux distribution packages (1)
drupal/graphql Packagist:https://packages.drupal.org/8From 4.0.04.2.0

Products include Drupal Drupal.

How do I fix CVE-2020-13675?

Upgrade drupal/core to a fixed version for your release line: 8.9.19, 9.1.13 or 9.2.6.

Is CVE-2020-13675 being exploited?

There is no known exploitation of CVE-2020-13675 in the wild and no public exploit code.

All Drupal Drupal vulnerabilities

Sources

Also known as BIT-drupal-2020-13675, DRUPAL-CONTRIB-2021-029, DRUPAL-CORE-2021-008, GHSA-v8wr-r69p-mmwx.

Is CVE-2020-13675 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free