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 package | Versions | Reported by |
|---|---|---|
| Drupal Core | from 9.2.x before 9.2.6, from 9.1.x before 9.1.13, from 8.9.x before 8.9.19 | CVE 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.6 | GitHub Advisory Database, Drupal Security Team |
| drupal/graphql (Packagist:https://packages.drupal.org/8) | from 4.0.0 before 4.2.0 | Drupal Security Team |
| drupal drupal | from 8.0.0 before 8.9.19, from 9.1.0 before 9.1.13, from 9.2.0 before 9.2.6 | NVD |
| 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.6 | Bitnami Vulnerability Database |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Bitnami Vulnerability Database | critical 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:
- The GraphQL module must be enabled on the site.
- The GraphQL schema must expose a file upload by using the helper "src/GraphQL/Utility/FileUpload.php" in the module.
- An attacker must have access to that file upload via the GraphQL API.
- 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:
- The JSON:API or REST File upload modules must be enabled on the site.
- An attacker must have access to a file upload via JSON:API or REST.
- 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
| https://www.drupal.org/sa-core-2021-008 | advisory, mitigation, patch, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2020-13675 | advisory, web | |
| https://github.com/drupal/core | package | |
| https://www.drupal.org/sa-contrib-2021-029 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2020-13675 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-v8wr-r69p-mmwx changed 2025-12-10 | CC-BY-4.0 |
| Drupal Security Team | DRUPAL-CONTRIB-2021-029 changed 2026-09-10 | MIT |
| Drupal Security Team | DRUPAL-CORE-2021-008 changed 2026-09-19 | MIT |
| NVD | CVE-2020-13675 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-DRUPAL-2020-13675 changed 2026-09-08 | Apache-2.0 |