Server-side template injection in Craft CMS



Published: 2023-05-19
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2023-32679
CWE-ID CWE-94
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Subscribe
Craft CMS
Web applications / CMS

Vendor Pixel & Tonic, Inc.

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Code Injection

EUVDB-ID: #VU76378

Risk: Medium

CVSSv3.1: 6.7 [CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C]

CVE-ID: CVE-2023-32679

CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')

Exploit availability: No

Description

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

The vulnerability exists due to the way the application handles uploaded files. A remote user can upload a text file with a malicious payload and execute it on the server, as it will be rendered as a template file.

Successful exploitation of this vulnerability requires that the "ALLOW_ADMIN_CHANGES" option is set to "true".

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Craft CMS: 4.0.0 - 4.4.11

External links

http://github.com/craftcms/cms/security/advisories/GHSA-vqxf-r9ph-cc9c


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote authenticated user via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.



###SIDEBAR###