# CVE-2023-32679: Remote Code Execution via unrestricted file extension in Craft CMS

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.85%, higher than 79% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-05-19T19:40:14.858Z
- Modified: 2026-09-10T03:50:08.243Z
- Also known as: GHSA-vqxf-r9ph-cc9c
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- craftcms cms: >= 4.0.0, < 4.4.6
- craftcms/cms (Packagist): from 4.0.0 before 4.4.6
- craftcms craft_cms: from 4.0.0 before 4.4.6

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## 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)

## Sources

- CVE List: [CVE-2023-32679](https://www.cve.org/CVERecord?id=CVE-2023-32679), CVE Terms of Use, modified 2025-02-12
- GitHub Advisory Database: [GHSA-vqxf-r9ph-cc9c](https://github.com/advisories/GHSA-vqxf-r9ph-cc9c), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-32679](https://nvd.nist.gov/vuln/detail/CVE-2023-32679), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-32679 · Whole record: https://cve.day/CVE-2023-32679.json · Rebuilt by cve.day 2026-11-25T22:58:24.282Z
