CVE-2023-32679
PHP vulnerability analysis and mitigation

Overview

Craft CMS, an open source content management system, was found to be vulnerable to Remote Code Execution (CVE-2023-32679) due to an unrestricted file extension issue. The vulnerability affects versions from 4.0.0 to 4.4.5 and was disclosed on May 19, 2023. The vulnerability exists in the View.php's template resolution functionality where arbitrary extension files could be rendered as twig templates (GitHub Advisory).

Technical details

The vulnerability occurs in the View.php's doesTemplateExist() -> resolveTemplate() -> _resolveTemplateInternal() -> _resolveTemplate() function chain. If the name parameter value is not empty, the function returns directly without proper extension verification, allowing arbitrary extension files to be rendered as twig templates. This bypasses the intended restriction of defaultTemplateExtensions which should only allow 'html' and 'twig' extensions. The vulnerability has been assigned a CVSS v3.1 score of 7.2 (High) with vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H (GitHub Advisory).

Impact

When successfully exploited, this vulnerability can lead to remote code execution, potentially allowing attackers to take control of vulnerable systems, perform data exfiltration, execute malware, and enable system pivoting. The impact is particularly concerning for development environments or improperly configured staging/production environments where ALLOW_ADMIN_CHANGES=true (GitHub Advisory).

Exploitability

The vulnerability requires an attacker to have administrative privileges and the system must have ALLOW_ADMIN_CHANGES=true configuration. The exploitation is possible in development environments or misconfigured staging/production environments. According to the advisory, 371 domains using CraftCMS were exposed on Shodan, with 33 servers having 'stage' or 'dev' in their hostnames (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 4.4.6. The fix includes implementing proper template file extension verification before returning the file path. Users are strongly advised to upgrade to this version or later. There are no known workarounds for this vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-71488HIGH7.5
  • PHP logoPHP
  • league/commonmark
NoYesAug 06, 2026
CVE-2026-67434HIGH7.3
  • PHP logoPHP
  • squizlabs/php_codesniffer
NoYesAug 06, 2026
CVE-2026-71478MEDIUM6.1
  • PHP logoPHP
  • league/commonmark
NoYesAug 06, 2026
CVE-2026-71435MEDIUM6.1
  • PHP logoPHP
  • statamic/cms
NoYesAug 06, 2026
CVE-2026-71434MEDIUM5.3
  • PHP logoPHP
  • statamic/cms
NoYesAug 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management