Detect CVE-2025-24893 XWiki Platform Eval Injection Exploitation in CrowdStrike LogScale
Detects exploitation of CVE-2025-24893, an eval injection vulnerability (CWE-95) in XWiki Platform that allows remote code execution via server-side template injection. This CVE is listed in CISA's Known Exploited Vulnerabilities catalog, indicating active exploitation in the wild. Attackers can craft malicious wiki content or URLs containing Groovy/Velocity template expressions that are evaluated server-side, leading to arbitrary code execution under the XWiki process context.
MITRE ATT&CK
LogScale Detection Query
#event_simpleName IN (NetworkConnectIP4, NetworkConnectIP6, ProcessRollup2, SyntheticProcessRollup2)
| CommandLine LIKE "*java*" OR FileName IN ("java", "java.exe")
| ParentBaseFileName IN ("java", "catalina.sh", "startup.sh", "wrapper", "jsvc")
| ChildFileName IN ("sh", "bash", "cmd.exe", "powershell.exe", "python", "python3", "curl", "wget", "nc", "ncat", "ncat.exe", "whoami", "id", "net.exe")
| RemotePort IN (80, 443, 8080, 8443, 4444, 9999)
| RemoteAddressIP4 != "127.0.0.1" AND RemoteAddressIP4 != "::1"
| eval ThreatIndicator = "CVE-2025-24893 XWiki RCE Post-Exploitation"
| stats count() AS event_count, values(ChildFileName) AS spawned_processes, values(CommandLine) AS commands, earliest(timestamp) AS first_seen, latest(timestamp) AS last_seen BY ComputerName, UserName, FileName, ThreatIndicator
| where event_count > 0
| sort -event_count CrowdStrike CQL query detecting post-exploitation activity following CVE-2025-24893 XWiki eval injection by identifying suspicious child processes spawned from Java/Tomcat parent processes and unusual outbound network connections, indicating successful remote code execution.
Data Sources
Required Tables
False Positives & Tuning
- Java application servers legitimately spawning shell scripts for scheduled maintenance tasks initiated from within the JVM
- XWiki Groovy scripts authorized by administrators that execute system commands for backup, monitoring, or integration purposes
- Java-based build tools such as Maven or Gradle running tests that spawn child processes from a Tomcat-based parent
- Container health check processes that invoke shell commands from within Java application containers during orchestration
Other platforms for CVE-2025-24893
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 1XWiki Velocity Template Expression Injection via URL Parameter
Expected signal: Web server access log entry for GET request to /xwiki/bin/view/Main/WebHome with URL-encoded Velocity expression `#set($rt=$x.class.forName("java.lang.Runtime"))` and `exec("id")` in query parameters; Syslog or Java log entry showing Velocity evaluation; possible child process `id` spawned from Java parent.
- Test 2XWiki Groovy Script Injection via Wiki Page Edit API
Expected signal: Web server access log showing PUT request to /xwiki/rest/wikis/xwiki/spaces/Main/pages/ with XML body containing `{{groovy}}` and `execute()` content. XWiki application log showing Groovy script evaluation event. Process event showing `id` command execution as child of Java process if the page is subsequently rendered.
- Test 3XWiki Post-Exploitation Reverse Shell via Groovy RCE
Expected signal: Process event showing `bash` child process spawned from Java parent with command line containing `/dev/tcp/` indicating reverse shell. Network connection event from Java/bash process to attacker IP on port 4444. XWiki application log showing Groovy script evaluation. Syslog entries showing bash process activity under the XWiki service account.
- Test 4XWiki Eval Injection Scanner Simulation
Expected signal: Multiple web server access log entries within a short time window for GET requests to /xwiki/bin/view/Main/WebHome with varying URL-encoded Groovy, Velocity, and FreeMarker injection payloads in query parameters from the same source IP.
Unlock Pro Content
Get the full detection package for CVE-2025-24893 including response playbook, investigation guide, and atomic red team tests.