Skip to main content
← All vulnerabilities
CVE-2023-32679GHSA-VQXF-R9PH-CC9C

Remote Code Execution via unrestricted file extension in Craft CMS

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.4.6
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • craftcms cms

    From 4.0.0 · fixed in 4.4.6

  • craftcms/cmsPackagist

    From 4.0.0 · fixed in 4.4.6

References 1

GitHub · craftcms/cms