Arbitrary file upload in Drupal - CVE-2020-13671
Published: November 18, 2020 / Updated: February 20, 2022
Vulnerability details
The vulnerability allows a remote attacker to compromise vulnerable system.
The vulnerability exists due to insufficient validation of file during file upload. A remote attacker can upload a malicious PHP file and execute it on the server.
Additionally, it's recommended that you audit all previously uploaded
files to check for malicious extensions. Look specifically for files
that include more than one extension, like .php.txt or .html.gif.
Pay specific attention to the following file extensions, which should
be considered dangerous even when followed by another extension:
- phar
- php
- pl
- py
- cgi
- asp
- js
- html
- htm
Affected software
Backdrop CMS
drupal7 (Alpine package)
drupal7 (Ubuntu package)
drupal8
Ubuntu
Fedora
How to mitigate CVE-2020-13671
Backdrop CMS - addressed in versions 1.16.5, 1.17.3
drupal7 (Alpine package) - update to 7.74-r0
drupal7 (Ubuntu package) - update to Ubuntu Pro
drupal8 - addressed in versions 8.9.11-1.fc32, 8.9.11-1.fc33