Intel

AIKIDO-2025-10859

craftcms/cms is vulnerable to Unrestricted Upload of File with Dangerous Type

Unrestricted Upload of File with Dangerous Type Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.

21

Low Risk

This Affects:

PHPcraftcms/cms
3.0.0 - 4.16.15
Fixed in 4.16.16
5.0.0 - 5.8.19
Fixed in 5.8.20
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to arbitrary file upload. Even when an upload is explicitly disallowed and the system correctly reports that the file should not be accepted, the file is still written to the temporary directory (storage/runtime/temp). This allows an attacker to place unexpected or malicious files on the server, potentially enabling further exploitation depending on server configuration and how temporary files are handled.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

craftcms/cms is vulnerable to Unrestricted Upload of File with Dangerous Type in versions 3.0.0 - 4.16.15 and 5.0.0 - 5.8.19.

How to fix this

Upgrade the craftcms/cms library to the patch version.