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.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
craftcms/cmsPackagist | >= 4.0.0, < 4.4.6 | 4.4.6 |
Affected products
1Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-vqxf-r9ph-cc9cghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-32679ghsaADVISORY
- github.com/craftcms/cms/releases/tag/4.4.6ghsaWEB
- github.com/craftcms/cms/security/advisories/GHSA-vqxf-r9ph-cc9cghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.