CVE-2025-24893 IBM QRadar · QRadar

Detect CVE-2025-24893 XWiki Platform Eval Injection Exploitation in IBM QRadar

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

Tactic
Initial Access Execution Persistence Lateral Movement

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  DATEFORMAT(starttime, 'YYYY-MM-dd HH:mm:ss') AS event_time,
  sourceip,
  destinationip,
  destinationport,
  URL,
  username,
  QIDNAME(qid) AS event_name,
  logsourcename(logsourceid) AS log_source,
  'CVE-2025-24893 XWiki Eval Injection' AS threat_indicator
FROM events
WHERE
  LOGSOURCETYPENAME(devicetype) IN ('Apache HTTP Server', 'Nginx', 'Microsoft IIS', 'Linux OS', 'Tomcat')
  AND
  (
    (URL ILIKE '%xwiki%' OR URL ILIKE '%/bin/view%' OR URL ILIKE '%/bin/edit%' OR URL ILIKE '%/bin/save%')
    AND
    (
      URL ILIKE '%groovy%' OR URL ILIKE '%velocity%' OR URL ILIKE '%7B%7B%' OR
      URL ILIKE '%24%7B%' OR URL ILIKE '%Runtime%' OR URL ILIKE '%exec(%' OR
      URL ILIKE '%ProcessBuilder%' OR URL ILIKE '%#set(%'
    )
  )
  AND LOGSOURCETIME(starttime) > NOW() - 24 HOURS
ORDER BY starttime DESC
LIMIT 1000
critical severity medium confidence

QRadar AQL query detecting CVE-2025-24893 exploitation attempts by identifying HTTP requests to XWiki endpoints containing Groovy or Velocity eval injection payloads within web server and application log sources.

Data Sources

Apache HTTP ServerNginxMicrosoft IISTomcatLinux OS Syslog

Required Tables

events

False Positives & Tuning

  • Legitimate XWiki API calls or internal application requests that include Groovy script content in URL parameters for authorized scripting
  • Vulnerability scanner activity from authorized tools performing security assessments of XWiki deployments
  • XWiki gadget or macro URLs that legitimately include velocity or groovy keywords as part of their application routing
  • Search engine crawlers or monitoring bots that may inadvertently replicate injection-like patterns in URL traversal

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.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections