Possible Craft CMS RCE via Query-String CLI Option Injection

PremiumReviewedSigma · High · v1
Category
webserver
Author
HuntRule
Published
2026-09-08
Updated
2026-09-08

ATT&CK techniques

Initial Access → Execution
  1. Recon

  2. Resource Dev

  3. Persistence

  4. Priv Esc

  5. Defense Evasion

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule detects HTTP requests that inject Yii/Craft CLI options such as --templatesPath or --configPath through the query string, abusing PHP register_argc_argv on Craft CMS. This technique matches the Assetnote Craft CMS PHP footgun research where attacker-controlled argv values point to remote FTP or PHP stream wrappers to achieve remote code execution. Detecting these option strings early surfaces exploitation of the underlying command-line parsing footgun before code execution.

Related detections9 linkedT1059 — drag to rearrange
Malicious Command Shell Spawned by SQL Server via Process Creation (via process_creation)
Suspicious Reconnaissance and Payload Download by Node Web Process
Malicious Text4Shell Apache Commons Text Interpolation Payload in HTTP Request
Possible Apache ActiveMQ RCE via Jolokia addNetworkConnector (via webserver)
Possible LiteLLM Unauthenticated Command Execution via MCP Test Endpoints (via webserver)
Possible Ivanti Cloud Services Appliance Command Injection via datetime.php (via webserver)
Possible Log4Shell Exploitation via Java Spawning Shell or Download Utility
Possible Ivanti Pulse Connect Secure Command Injection via License Keys-Status Endpoint (via webserver)
Possible Aspera Faspex Pre-Auth RCE via YAML Deserialization in package_relay (via webserver)
Possible Craft CMS RCE via Query-String CLI Option Injection
Pivot detection · T1059 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.