Security advisories

Here you will find a list of vulnerabilities that have already been found and fixed in Contao. If you think that you have found a security issue in Contao, please report it according to our security policy.

Remote command execution through file uploads

by Leo Feyer

Date: 2024-09-17
CVE ID: CVE-2024-45398

Back end users with access to the file manager can upload malicious files and execute them on the server.

Affected versions

Contao 4.0
Contao 4.1
Contao 4.2
Contao 4.3
Contao 4.4
Contao 4.5
Contao 4.6
Contao 4.7
Contao 4.8
Contao 4.9
Contao 4.10
Contao 4.11
Contao 4.12
Contao 4.13 up to 4.13.48
Contao 5.0
Contao 5.1
Contao 5.2
Contao 5.3 up to 5.3.14
Contao 5.4 up to 5.4.2

Suggested solution

Upgrade to Contao 4.13.49, 5.3.15 or 5.4.3.

Workaround

Configure your web server so it does not execute PHP files and other scripts in the Contao file upload directory.

More information

https://github.com/contao/contao/security/advisories/GHSA-vm6r-j788-hjh5

Credits

Thanks to Jakob Steeg from usd AG for reporting this vulnerability.

Show all security advisories