InfraGuard

CVE-2025-24893

Remote code execution as guest via SolrSearchMacros request in xwiki

9.8 CVSS 3.1 Exploited in the wildEPSS 100.0%

What is wrong

A vulnerability in XWiki Platform's SolrSearch component allows unauthenticated guest users to execute arbitrary remote code. Successful exploitation impacts the confidentiality, integrity, and availability of the entire XWiki installation.

Who is affected

This affects XWiki Platform versions from 5.3-milestone-2 before 15.10.11, as well as versions from 16.0.0-rc-1 before 16.4.1.

What to do

Upgrade to XWiki 15.10.11, 16.4.1, or 16.5.0RC1. Alternatively, edit `Main.SolrSearchMacros` in `SolrSearchMacros.xml` on line 955 to set the content type of the `rawResponse` macro to `application/xml`.

Original description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Any guest can perform arbitrary remote code execution through a request to `SolrSearch`. This impacts the confidentiality, integrity and availability of the whole XWiki installation. To reproduce on an instance, without being logged in, go to `<host>/xwiki/bin/get/Main/SolrSearch?media=rss&text=%7D%7D%7D%7B%7Basync%20async%3Dfalse%7D%7D%7B%7Bgroovy%7D%7Dprintln%28"Hello%20from"%20%2B%20"%20search%20text%3A"%20%2B%20%2823%20%2B%2019%29%29%7B%7B%2Fgroovy%7D%7D%7B%7B%2Fasync%7D%7D%20`. If there is an output, and the title of the RSS feed contains `Hello from search text:42`, then the instance is vulnerable. This vulnerability has been patched in XWiki 15.10.11, 16.4.1 and 16.5.0RC1. Users are advised to upgrade. Users unable to upgrade may edit `Main.SolrSearchMacros` in `SolrSearchMacros.xml` on line 955 to match the `rawResponse` macro in `macros.vm#L2824` with a content type of `application/xml`, instead of simply outputting the content of the feed.

Known exploited (CISA KEV)

Added to KEV
2025-10-30
Remediation due (US federal)
2025-11-20
Ransomware use
Unknown
Required action
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Affected software

Details

Published
2025-02-20
Last modified
2026-06-17
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CWE
CWE-95, CWE-94
EPSS (30-day exploit probability)
99.97% (percentile 100)

References

Track these versions on your own servers

InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.

Weekly exploited-vulnerability digest

The KEV additions that matter for self-hosted servers, once a week. No other mail.

This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.