{"uuid": "521fa7f4-d7e0-4853-9eb9-7a8638bd0a9c", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2023-41892", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/craftcms_unauth_rce_cve_2023_41892.rb", "content": "{\"aliases\": [], \"arch\": \"php, cmd, x64, x86\", \"author\": [\"h00die-gr3y \", \"Thanh\", \"chybeta\"], \"autofilter_ports\": [80, 8080, 443, 8000, 8888, 8880, 8008, 3000, 8443], \"autofilter_services\": [\"http\", \"https\"], \"check\": true, \"default_credential\": false, \"description\": \"This module exploits Remote Code Execution vulnerability (CVE-2023-41892) in Craft CMS which is a popular\\n          content management system. Craft CMS versions between 4.0.0-RC1 - 4.4.14 are  affected by this vulnerability\\n          allowing attackers to execute arbitrary code remotely, potentially compromising the security and integrity\\n          of the application.\\n\\n          The vulnerability occurs using a PHP object creation in the `\\\\craft\\\\controllers\\\\ConditionsController` class\\n          which allows to run arbitrary PHP code by escalating the object creation calling some methods available in\\n          `\\\\GuzzleHttp\\\\Psr7\\\\FnStream`. Using this vulnerability in combination with The Imagick Extension and MSL which\\n          stands for Magick Scripting Language, a full RCE can be achieved. MSL is a built-in ImageMagick language that\\n          facilitates the reading of images, performance of image processing tasks, and writing of results back\\n          to the filesystem. This can be leveraged to create a dummy image containing malicious PHP code using the\\n          Imagick constructor class delivering a webshell that can be accessed by the attacker, thereby executing the\\n          malicious PHP code and gaining access to the system.\\n\\n          Because of this, any remote attacker, without authentication, can exploit this vulnerability to gain\\n          access to the underlying operating system as the user that the web services are running as (typically www-data).\", \"disclosure_date\": \"2023-09-13\", \"fullname\": \"exploit/linux/http/craftcms_unauth_rce_cve_2023_41892\", \"is_install_path\": true, \"mod_time\": \"2026-04-22 11:54:55 +0000\", \"name\": \"Craft CMS unauthenticated Remote Code Execution (RCE)\", \"needs_cleanup\": true, \"notes\": {\"Reliability\": [\"repeatable-session\"], \"SideEffects\": [\"artifacts-on-disk\", \"ioc-in-logs\"], \"Stability\": [\"crash-safe\"]}, \"path\": \"/modules/exploits/linux/http/craftcms_unauth_rce_cve_2023_41892.rb\", \"platform\": \"Linux,PHP,Unix\", \"post_auth\": false, \"rank\": 600, \"ref_name\": \"linux/http/craftcms_unauth_rce_cve_2023_41892\", \"references\": [\"CVE-2023-41892\", \"URL-https://blog.calif.io/p/craftcms-rce\", \"URL-https://swarm.ptsecurity.com/exploiting-arbitrary-object-instantiations/\", \"GHSA-4w8r-3xrw-v25g\", \"URL-https://attackerkb.com/topics/2u7OaYlv1M/cve-2023-41892\"], \"rport\": 443, \"session_types\": false, \"targets\": [\"PHP\", \"Unix Command\", \"Linux Dropper\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:48:28.882771Z"}