Arbitrary file upload in Craft CMS

Published: 2018-01-02 21:04:42
Severity Medium
Patch available YES
Number of vulnerabilities 1
CVSSv2 6.7 (AV:N/AC:L/Au:S/C:C/I:C/A:C/E:U/RL:OF/RC:C)
CVE ID CVE-2018-3814
Exploitation vector Network
Public exploit Not available
Vulnerable software Craft CMS
Vulnerable software versions Craft CMS 2.6.3000
Vendor URL Pixel & Tonic, Inc.
Advisory type Public

Security Advisory

1) Arbitrary file upload


The vulnerability allows a remote attacker to execute arbitrary PHP code on the target system.

The vulnerability exists due to insufficient validation of user-supplied data when uploading files via "Assets->Upload files" screen. A remote authenticated attacker can upload .jpg file with PHP code inside, then use the "Replace it" option to rename the file and add .php extension to it. As a result the uploaded PHP code will be executed on the server.


Install update from vendor's repository.

External links

Back to List