Detect CVE-2025-32432: Craft CMS Remote Code Injection in Splunk
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
SPL Detection Query
index=web OR index=proxy OR index=waf
(sourcetype=iis OR sourcetype=apache:access OR sourcetype=nginx:plus:kv OR sourcetype=pan:traffic OR sourcetype=suricata)
(uri_path="*/actions/*" OR uri_path="*/admin/*" OR uri_path="*/index.php*")
method=POST
(uri_query="*phpinfo*" OR uri_query="*base64_decode*" OR uri_query="*eval(*" OR uri_query="*system(*" OR uri_query="*exec(*" OR uri_query="*assert(*" OR uri_query="*passthru(*" OR uri_query="*shell_exec(*" OR request_body="*phpinfo*" OR request_body="*base64_decode*" OR request_body="*eval(*")
| eval severity="critical", cve="CVE-2025-32432"
| stats count, values(uri_path) as paths, values(uri_query) as queries, earliest(_time) as first_seen, latest(_time) as last_seen by src_ip, dest, http_user_agent
| where count > 0
| sort -count Detects POST requests to Craft CMS action endpoints containing PHP code injection strings associated with CVE-2025-32432 exploitation across web, proxy, and WAF log sources.
Data Sources
Required Sourcetypes
False Positives & Tuning
- Automated vulnerability scanners generating code injection probe traffic
- Internal red team or pentest engagements against Craft CMS instances
- Craft CMS developer environments where template debugging exposes eval-like patterns
- Security monitoring tools that replay or forward raw HTTP logs containing historical payloads
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.