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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| xwiki | xwiki-platform | >= 5.3-milestone-2, < 15.10.11, >= 16.0.0-rc-1, < 16.4.1 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
Remote Code Execution Vulnerability in XWiki Platform (CVE-2025-24893)
exploit/multi/http/xwiki_unauth_rce_cve_2025_24893
Exploit-DB 2
- XWiki Platform 15.10.10 - Metasploit Module for Remote Code Execution (RCE) EDB-52429 · webapps · Sep 16, 2025
- XWiki Platform 15.10.10 - Remote Code Execution EDB-52136 · webapps · Apr 7, 2025
GitHub 45 repositories · most starred shown
-
gunzf0x/CVE-2025-24893 ★ 23 · Aug 4, 2025
PoC for CVE-2025-24893: XWiki' Remote Code Execution exploit for versions prior to 15.10.11, 16.4.1 and 16.5.0RC1.
-
dollarboysushil/CVE-2025-24893-XWiki-Unauthenticated-RCE-Exploit-POC ★ 17 · Aug 4, 2025
CVE-2025-24893 is a critical unauthenticated remote code execution vulnerability in XWiki (versions < 15.10.11, 16.4.1, 16.5.0RC1) caused by improper handling of Groovy expressions in the SolrSearch …
-
b0ySie7e/CVE-2025-24893 ★ 11 · Sep 3, 2025
-
iSee857/CVE-2025-24893-PoC ★ 10 · Feb 25, 2025
XWiki SolrSearchMacros 远程代码执行漏洞PoC(CVE-2025-24893)
-
Hex00-0x4/CVE-2025-24893-XWiki-RCE ★ 6 · Aug 8, 2025
This vulnerability could allow a malicious user to execute remote code by sending appropriately crafted requests to the default search engine SolrSearch
-
Infinit3i/CVE-2025-24893 ★ 6 · Aug 3, 2025
PoC exploits CVE-2025-24893 , a remote code execution (RCE) vulnerability in XWiki caused by improper sandboxing in Groovy macros rendered asynchronously. It allows arbitrary command execution throug…
-
gotr00t0day/CVE-2025-24893 ★ 5 · Oct 2, 2025
Unauthenticated Remote Code Execution in XWiki via SolrSearch Macro
-
AliElKhatteb/CVE-2024-32019-POC ★ 5 · Aug 3, 2025
this is a poc for the CVE-2025-24893
-
hackersonsteroids/cve-2025-24893 ★ 5 · Aug 3, 2025
Modified exploit for CVE-2025-24893
-
D3Ext/CVE-2025-24893 ★ 4 · Aug 9, 2025
POC exploit for CVE-2025-24893
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- XWiki Platform - Remote Code Execution http/cves/2025/CVE-2025-24893.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.xwiki.platform:xwiki-platform-search-solr-ui | >= 5.3-milestone-2, < 15.10.11 | 15.10.11 | GHSA-rr6p-3pfg-562j |
| Maven | org.xwiki.platform:xwiki-platform-search-solr-ui | >= 16.0.0-rc-1, < 16.4.1 | 16.4.1 | GHSA-rr6p-3pfg-562j |
Advisories 2
- WID-SEC-2025-0425 xwiki: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Nov 16, 2025
- NCSC-2025-0066 Kwetsbaarheid verholpen in XWiki NCSC-NL (Netherlands) · Feb 21, 2025
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-rr6p-3pfg-562j
- https://github.com/xwiki/xwiki-platform/commit/67021db9b8ed26c2236a653269302a86bf01ef40
- https://github.com/xwiki/xwiki-platform/blob/568447cad5172d97d6bbcfda9f6183689c2cf086/xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-solr/xwiki-platform-search-solr-ui/src/main/resources/Main/SolrSearchMacros.xml#L955
- https://github.com/xwiki/xwiki-platform/blob/67021db9b8ed26c2236a653269302a86bf01ef40/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/macros.vm#L2824
- https://jira.xwiki.org/browse/XWIKI-22149