CVE-2020-13675
JSON

9.8critical

Unrestricted Upload of File with Dangerous Type in Drupal core

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
1.39% (higher than 73% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
drupal
Also known as
GHSA-v8wr-r69p-mmwxBIT-DRUPAL-2020-13675DRUPAL-CONTRIB-2021-029DRUPAL-CORE-2021-008

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.

Affected

Product or packageVersionsReported by
Drupal Corefrom 9.2.x before 9.2.6, from 9.1.x before 9.1.13, from 8.9.x before 8.9.19CVE List
drupal/core (Packagist)from 8.0.0 before 8.9.19, from 9.1.0 before 9.1.13, from 9.2.0 before 9.2.6GitHub Advisory Database, Drupal Security Team
drupal/graphql (Packagist:https://packages.drupal.org/8)from 4.0.0 before 4.2.0Drupal Security Team
drupal drupalfrom 8.0.0 before 8.9.19, from 9.1.0 before 9.1.13, from 9.2.0 before 9.2.6NVD
drupal (Bitnami)from 8.0.0 before 8.9.19, from 9.1.0 before 9.1.13, from 9.2.0 before 9.2.6Bitnami Vulnerability Database

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
Bitnami Vulnerability Databasecritical rating

Classification

What each source says

CVE List

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.

Drupal Security Team

This advisory addresses a similar issue to Drupal core - Moderately critical - Access bypass - SA-CORE-2021-008.

The GraphQL module allows file uploads through its HTTP API. The module does 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.

This vulnerability is mitigated by four factors:

  1. The GraphQL module must be enabled on the site.
  2. The GraphQL schema must expose a file upload by using the helper "src/GraphQL/Utility/FileUpload.php" in the module.
  3. An attacker must have access to that file upload via the GraphQL API.
  4. The site must employ a file validation module.
Drupal Security Team

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.

This vulnerability is mitigated by three factors:

  1. The JSON:API or REST File upload modules must be enabled on the site.
  2. An attacker must have access to a file upload via JSON:API or REST.
  3. The site must employ a file validation module.

This advisory is not covered by Drupal Steward.

Also see GraphQL - Moderately critical - Access bypass - SA-CONTRIB-2021-029 which addresses a similar vulnerability for that module.

NVD (es)

Los módulos JSON:API y REST/File de Drupal permiten la carga de archivos mediante sus APIs HTTP. Los módulos no ejecutan correctamente toda la comprobación de los archivos, lo que causa una vulnerabilidad de omisión de acceso. Un atacante podría ser capaz de subir archivos que salten el proceso de comprobación de archivos implementado por los módulos del sitio

References

Sources

SourceRecordLicence
CVE ListCVE-2020-13675 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-v8wr-r69p-mmwx changed 2025-12-10CC-BY-4.0
Drupal Security TeamDRUPAL-CONTRIB-2021-029 changed 2026-09-10MIT
Drupal Security TeamDRUPAL-CORE-2021-008 changed 2026-09-19MIT
NVDCVE-2020-13675 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-DRUPAL-2020-13675 changed 2026-09-08Apache-2.0