CVE-2023-41892
PHP vulnerability analysis and mitigation

Overview

CVE-2023-41892 is a critical remote code execution (RCE) vulnerability affecting Craft CMS, a platform for creating digital experiences. The vulnerability affects versions between 4.0.0-RC1 and 4.4.14, and was fixed in version 4.4.15. This high-impact, low-complexity attack vector was discovered and disclosed in September 2023 (GitHub Advisory, NVD).

Technical details

The vulnerability occurs due to a PHP object creation flaw in the \craft\controllers\ConditionsController class. The issue allows attackers to execute arbitrary PHP code by escalating object creation through methods available in \GuzzleHttp\Psr7\FnStream. When combined with the Imagick Extension and Magick Scripting Language (MSL), attackers can achieve full remote code execution. The vulnerability has received a CVSS v3.1 base score of 10.0 CRITICAL (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L) (AttackerKB).

Impact

The vulnerability allows any remote attacker, without authentication, to execute arbitrary code on the underlying operating system with the privileges of the web service user (typically www-data). This can lead to complete system compromise, data breaches, and unauthorized access to the application (Rapid7).

Mitigation and workarounds

Users are strongly advised to upgrade to Craft CMS version 4.4.15 or later. Additional recommended security measures include: refreshing the security key using 'php craft setup/security-key' command, updating the CRAFTSECURITYKEY environment variable in all production environments, refreshing any private keys stored as environment variables (e.g., for S3 or Stripe), and forcing all users to reset their passwords using 'php craft resave/users --set passwordResetRequired --to "fn() => true"' (GitHub Advisory).

Community reactions

The security community has recognized this as a significant vulnerability, with researchers actively developing and sharing proof-of-concept exploits. The vulnerability has garnered attention due to its critical severity and the widespread use of Craft CMS (Security Online).

Additional resources


SourceThis report was generated using AI

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