CVE-2023-32679

Remote Code Execution via unrestricted file extension in Craft CMS

Published May 19, 2023 CVSS 3.1 · 7.2 High EPSS 1.8% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-vqxf-r9ph-cc9c Craft CMS vulnerable to Remote Code Execution via unrestricted file extension
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Feb 12, 2025, 4:37 PM
Reserved
May 11, 2023, 4:33 PM
Status
Modified
Published
May 19, 2023, 8:15 PM
Modified
Jun 17, 2026, 5:59 AM