Detect CVE-2025-32432: Craft CMS Remote Code Injection in Sumo Logic CSE
Detects exploitation of CVE-2025-32432, a critical code injection vulnerability (CWE-94) in Craft CMS that allows remote attackers to execute arbitrary code. This vulnerability is actively exploited in the wild (CISA KEV) and targets Craft CMS installations via malicious template or input injection vectors.
MITRE ATT&CK
- Tactic
- Initial Access Execution Persistence
Sumo Detection Query
_sourceCategory=web/access OR _sourceCategory=waf OR _sourceCategory=proxy
| where (_raw matches /\/actions\/|\/admin\/|\/index\.php/ and _raw matches /POST/)
| where _raw matches /phpinfo|base64_decode|eval\(|system\(|exec\(|assert\(|passthru\(|shell_exec\(/
| parse regex "(?<src_ip>\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3})"
| parse regex "\"(?<http_method>GET|POST|PUT|DELETE|PATCH|HEAD|OPTIONS) (?<uri_path>[^ ]+)"
| parse regex "HTTP\/[\\d\.]+\" (?<status_code>\\d{3})"
| count by src_ip, uri_path, status_code
| where _count > 0
| sort by _count desc
| fields src_ip, uri_path, status_code, _count
| rename _count as request_count Sumo Logic query detecting HTTP POST requests to Craft CMS action and admin endpoints containing PHP code injection payloads indicative of CVE-2025-32432 exploitation.
Data Sources
Required Tables
False Positives & Tuning
- Automated security scanners such as Nuclei or Burp Suite running CVE-2025-32432 checks
- Internal developer tools that POST template data containing PHP-like syntax to Craft CMS
- Log aggregation pipelines that include raw exploit payload samples as part of threat intel ingestion
Other platforms for CVE-2025-32432
Testing Methodology
Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.
- Test 1CVE-2025-32432 PHP Info Probe via Craft CMS Action Endpoint
Expected signal: HTTP POST to /actions/test with 'phpinfo()' in request body; web server access log entry; potential 200 response with PHP environment disclosure
- Test 2CVE-2025-32432 Base64-Encoded Command Injection
Expected signal: HTTP POST to /actions/users/login with 'base64_decode' in POST body; web server log capturing encoded payload; potential process spawn of 'id' command from php parent
- Test 3CVE-2025-32432 Webshell Drop via File Write Injection
Expected signal: POST to /actions/ with file_put_contents payload; new file 'shell.php' created in web root with anomalous timestamp; subsequent GET to /shell.php with cmd parameter; process execution of 'id' spawned from PHP
- Test 4CVE-2025-32432 Reverse Shell Payload Simulation
Expected signal: HTTP POST to Craft CMS action endpoint with bash reverse shell command in body; outbound TCP connection from web server to attacker IP on port 4444; process tree showing bash spawned from php parent; network flow anomaly for web server initiating outbound connection
Unlock Pro Content
Get the full detection package for CVE-2025-32432 including response playbook, investigation guide, and atomic red team tests.