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
Debian Linux
Ubuntu
Fedora
drupal7 (Alpine package)
drupal7 (Ubuntu package)
drupal7 (Debian package)
drupal8
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) - addressed in versions 7.26-1ubuntu0.1+esm2, 7.44-1ubuntu1~16.04.0+esm2
drupal7 (Debian package) - update to 7.52-2+deb9u12
drupal8 - addressed in versions 8.9.11-1.fc32, 8.9.11-1.fc33