CVE-2023-32679
HIGH 7.2CVSS 3.1Craft CMS vulnerable to Remote Code Execution via unrestricted file extension
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.
- Published
- 19 May 2023
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-74
- Also known as
- GHSA-vqxf-r9ph-cc9c
- Sources
- NVDJSONOSV GHSA-vqxf-r9ph-cc9cJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | craftcms | craft_cmscpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.4.6 | 4.4.6 |
| OSV | Packagist | craftcms/cms | >= 4.0.0, < 4.4.6 | 4.4.6 |
References
- https://github.com/craftcms/cms/security/advisories/GHSA-vqxf-r9ph-cc9c · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-32679 · ADVISORY
- https://github.com/craftcms/cms · PACKAGE
- https://github.com/craftcms/cms/releases/tag/4.4.6 · WEB
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 19 May 2023)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 22 May 2023)