Unauthenticated code execution via condition configuration
Published Sep 13, 2023 · Updated Feb 13, 2025
Code injection in Pixel & Tonic Craft CMS 4.0.0-RC1 through 4.4.14 allows remote attackers to execute arbitrary server-side code. ConditionsController::beforeAction() creates and configures a condition from request body data before authorization, accepting Yii “as ” and “on ” keys that attach attacker-selected behaviors or event handlers. No authentication or user interaction is required; execution runs with web-service privileges and can expose application secrets, alter data, or interrupt the site.
Summary
What happened
Code injection in Pixel & Tonic Craft CMS 4.0.0-RC1 through 4.4.14 allows remote attackers to execute arbitrary server-side code. ConditionsController::beforeAction() creates and configures a condition from request body data before authorization, accepting Yii “as ” and “on ” keys that attach attacker-selected behaviors or event handlers. No authentication or user interaction is required; execution runs with web-service privileges and can expose application secrets, alter data, or interrupt the site.
The record
- CVE
- CVE-2023-41892
- Published
- Sep 13, 2023
- Updated
- Feb 13, 2025
- Vendor
- Pixel & Tonic
- Product
- Craft CMS
- Classifications
- CWE-94, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Sep 13, 2023CVE publishedPublication date reported by the CVE source.
- Feb 13, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 4.0.0-RC1, <= 4.4.14
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Craft CMS 4.4.14 unauthenticated RCE exploitfunctional · validated
- Metasploit Craft CMS unauthenticated RCE moduleweaponized · validated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo