CVE-2023-32679

Public Exploit
Remote Code Execution via unrestricted file extension in Craft CMS

Description

Craft CMS is an open source content management system. In affected versions of Craft CMS an unrestricted file extension may lead to Remote Code Execution. If the name parameter value is not empty string('') in the View.php's doesTemplateExist() -> resolveTemplate() -> _resolveTemplateInternal() -> _resolveTemplate() function, it returns directly without extension verification, so that arbitrary extension files are rendered as twig templates. When attacker with admin privileges on a DEV or an improperly configured STG or PROD environment, they can exploit this vulnerability to remote code execution. Code execution may grant the attacker access to the host operating system. This issue has been addressed in version 4.4.6. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Category

7.2
CVSS
Severity: High
CVSS 3.1 •
EPSS 21.11% Top 5%
Vendor Advisory github.com
Affected: craftcms cms
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-32679?
CVE-2023-32679 has been scored as a high severity vulnerability.
How to fix CVE-2023-32679?
To fix CVE-2023-32679, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-32679 being actively exploited in the wild?
It is possible that CVE-2023-32679 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~21% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-32679?
CVE-2023-32679 affects craftcms cms.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.