Craft CMS: argc/argv RCE and Session-File Injection (KEV)
Craft sites on 5.7.5 or 4.15.3 and later are covered for both bugs; anything older, and every Craft 3 site, needs an upgrade and a look for backdoors, because both flaws have been used against internet-facing sites.
Must act: Owners of self-hosted Craft CMS sites below 5.7.5 or 4.15.3, Craft 3 sites, and any site whose web PHP has register_argc_argv enabled, as in Craft's official Docker image.
Can relax: Sites already on Craft 5.7.5 or 4.15.3 or later with no signs of earlier compromise; Craft says it firewalled Craft Cloud against CVE-2024-56145.
- Check the Craft version on every site (composer show craftcms/cms) and upgrade to 5.7.5 or 4.15.3 or later.
- In the control panel, open Utilities > PHP Info and set register_argc_argv = Off for the web PHP if it shows On.
- At the WAF, block query strings matching --[a-zA-Z]*[pP]ath and POSTs to actions/assets/generate-transform that contain __class.