CVE-2023-32679

High

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.

SeverityHigh
CVSS7.2
Exploit probability—
ProductCraftcms Craft Cms
PublishedMay 19, 2023
First seenMay 19, 2023
Weakness typeCWE-74Injection

How to fix

Update
  • craftcms craft_cms4.4.6 or later
  • craftcms/cms4.4.6 or later

Affected products

ProductAffected versionsFixed in
craftcms craft_cms4.0.0 ≤ v < 4.4.64.4.6
craftcms/cmsPackagist4.0.0 ≤ v < 4.4.64.4.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.