CVE-2025-24893criticalunder attackCWE-95

CVE-2025-24893: critical vulnerability in xwiki-platform

Remote code execution as guest via SolrSearchMacros request in xwiki

Published · Updated

E-mail alert when it lands in KEV, gets a public PoC or its score goes up.

100Vexday Risk Score

Patch now. It under exploitation confirmed by CISA and has a working public exploit.

ssvc Actcvss 9.8epss 100%
from disclosure to weapon5 days
Published on NVDFeb 20
1st PoC+5d
metasploitFeb 20
CISA KEV+252d
Action required by CISAfederal deadline: 2025-11-20

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

In short

Any visitor to an XWiki site can execute arbitrary code on the server without logging in, by sending a specially crafted request to the search feature. This completely compromises the confidentiality, integrity, and availability of the entire XWiki installation.

Technical detail

The SolrSearch macro fails to properly sanitize user-supplied input in the `text` parameter before evaluating it as code, allowing unauthenticated attackers to inject and execute arbitrary Groovy code on the server. The vulnerability exists in the response handling mechanism that outputs the feed content without proper escaping or content-type restrictions.

Summary generated and translated by AI from the official description.

The full analysis of this CVE is available in Portuguese →

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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
xwiki · xwiki-platform
public PoCs found — 98
exploitdbwww.exploit-db.com/exploits/52429unverifiedexploitdbwww.exploit-db.com/exploits/52136unverifiedgithubgithub.com/gunzf0x/CVE-2025-24893★ 23githubgithub.com/dollarboysushil/CVE-2025-24893-XWiki-Unauthenticated-RCE-Exploit-POC★ 17githubgithub.com/b0ySie7e/CVE-2025-24893★ 11githubgithub.com/iSee857/CVE-2025-24893-PoC★ 10githubgithub.com/Hex00-0x4/CVE-2025-24893-XWiki-RCE★ 6githubgithub.com/Infinit3i/CVE-2025-24893★ 6githubgithub.com/AliElKhatteb/CVE-2024-32019-POC★ 5githubgithub.com/hackersonsteroids/cve-2025-24893★ 5githubgithub.com/gotr00t0day/CVE-2025-24893★ 5githubgithub.com/D3Ext/CVE-2025-24893★ 4githubgithub.com/570RMBR3AK3R/xwiki-cve-2025-24893-poc★ 3githubgithub.com/BreakingRohit/CVE-2025-24893-PoC★ 2githubgithub.com/Artemir7/CVE-2025-24893-EXP★ 2githubgithub.com/torjan0/xwiki_solrsearch-rce-exploit★ 2githubgithub.com/IIIeJlyXaKapToIIIKu/CVE-2025-24893-XWiki-unauthenticated-RCE-via-SolrSearch★ 1githubgithub.com/80Ottanta80/CVE-2025-24893-PoC★ 1githubgithub.com/vasilysaint/CVE-2025-24893★ 1githubgithub.com/nohack1212/CVE-2025-24893-★ 1githubgithub.com/x0da6h/POC-for-CVE-2025-24893★ 1githubgithub.com/Yukik4z3/CVE-2025-24893★ 1githubgithub.com/Th3Gl0w/CVE-2025-24893-POC★ 1githubgithub.com/CMassa/CVE-2025-24893★ 0githubgithub.com/AzureADTrent/CVE-2025-24893-Reverse-Shell★ 0githubgithub.com/0xDTC/XWiki-Platform-RCE-CVE-2025-24893★ 0githubgithub.com/kimtangker/CVE-2025-24893★ 0githubgithub.com/mah4nzfr/CVE-2025-24893★ 0githubgithub.com/The-Red-Serpent/CVE-2025-24893★ 0githubgithub.com/Bishben/xwiki-15.10.8-reverse-shell-cve-2025-24893★ 0githubgithub.com/Y2F05p2w/CVE-2025-24893★ 0githubgithub.com/TomKingori/xwiki-cve-2025-24893-exploit★ 0githubgithub.com/rippsec/CVE-2025-24893-XWiki-SSTI-RCE★ 0githubgithub.com/Fomovet/cve-2025-24893★ 0githubgithub.com/gmh5225/CVE-2025-24893-RCE-PoC★ 0githubgithub.com/zs1n/CVE-2025-24893★ 0githubgithub.com/ibadovulfat/CVE-2025-24893★ 0githubgithub.com/rvzsec/CVE-2025-24893★ 0githubgithub.com/hasecto/CVE-2025-24893★ 0githubgithub.com/endusdksla/xwiki-cve-2025-24893★ 0githubgithub.com/MattiaCervelli/CVE-2025-24893_Analysis★ 0githubgithub.com/dhiaZnaidi/CVE-2025-24893-PoC★ 0githubgithub.com/Retro023/CVE-2025-24893-POC★ 0githubgithub.com/andwati/CVE-2025-24893★ 0githubgithub.com/o0wo0o/CVE-2025-24893_Shell★ 0githubgithub.com/alaxar/CVE-2025-24893★ 0githubgithub.com/investigato/cve-2025-24893-poc★ 0vulncheckvulncheck.com/xdb/e8b041b40fccunverifiedvulncheckvulncheck.com/xdb/444954e3b786unverifiedvulncheckvulncheck.com/xdb/93f5e4efb877unverifiedvulncheckvulncheck.com/xdb/596098d5a2f9unverifiedvulncheckvulncheck.com/xdb/65f834835fd6unverifiedvulncheckvulncheck.com/xdb/05bdc5c383fbunverifiedvulncheckvulncheck.com/xdb/fbf9dfffc712unverifiedvulncheckvulncheck.com/xdb/d68432820abeunverifiedvulncheckvulncheck.com/xdb/06c9fbe27cd0unverifiedvulncheckvulncheck.com/xdb/bb78fdf33a59unverifiedvulncheckvulncheck.com/xdb/c57ce2c0f88dunverifiedvulncheckvulncheck.com/xdb/e806dec4d316unverifiedvulncheckvulncheck.com/xdb/fbb9d786622bunverifiedvulncheckvulncheck.com/xdb/b046aa232c71unverifiedvulncheckvulncheck.com/xdb/789a8c6825b2unverifiedvulncheckvulncheck.com/xdb/71fda264aebcunverifiedvulncheckvulncheck.com/xdb/89494e523180unverifiedvulncheckvulncheck.com/xdb/2391f1ba6766unverifiedvulncheckvulncheck.com/xdb/1538898e5c9dunverifiedvulncheckvulncheck.com/xdb/e0d8e8479af7unverifiedvulncheckvulncheck.com/xdb/d1b7aef06a77unverifiedvulncheckvulncheck.com/xdb/86a950545a1aunverifiedvulncheckvulncheck.com/xdb/ed7f1245d21bunverifiedvulncheckvulncheck.com/xdb/8682205ce5c3unverifiedvulncheckvulncheck.com/xdb/6b471e7ef67funverifiedvulncheckvulncheck.com/xdb/286c3bfb8170unverifiedvulncheckvulncheck.com/xdb/080d40055775unverifiedvulncheckvulncheck.com/xdb/6ab6a9ee7d8funverifiedvulncheckvulncheck.com/xdb/a7c585dc65b2unverifiedvulncheckvulncheck.com/xdb/d106a5e812c8unverifiedvulncheckvulncheck.com/xdb/33abb14390c6unverifiedvulncheckvulncheck.com/xdb/3f52024d7a6dunverifiedvulncheckvulncheck.com/xdb/9b38b7649f7cunverifiedvulncheckvulncheck.com/xdb/64f274f6eb64unverifiedvulncheckvulncheck.com/xdb/2dffa3000fabunverifiedvulncheckvulncheck.com/xdb/dec237ab6767unverifiedvulncheckvulncheck.com/xdb/bb055c349a1eunverifiedvulncheckvulncheck.com/xdb/edaa9b83cb33unverifiedvulncheckvulncheck.com/xdb/53bca8061977unverifiedvulncheckvulncheck.com/xdb/3e5b42bc93c5unverifiedvulncheckvulncheck.com/xdb/bfeb32c2c60cunverifiedvulncheckvulncheck.com/xdb/5855609e4d40unverifiedvulncheckvulncheck.com/xdb/e583ae8e9370unverifiedvulncheckvulncheck.com/xdb/e8a608a67a7eunverifiedvulncheckvulncheck.com/xdb/6d2a0b82c683unverifiedvulncheckvulncheck.com/xdb/ccc3579adc13unverifiedvulncheckvulncheck.com/xdb/74202de07260unverifiedvulncheckvulncheck.com/xdb/831618aeeeceunverifiedvulncheckvulncheck.com/xdb/37339d012dc5unverifiedvulncheckvulncheck.com/xdb/1b13eb840965unverifiedvulncheckvulncheck.com/xdb/d7f7ed50e901unverified
⚠ Public resources, to assess the exposure of systems you control or are authorized to test. Test only with authorization.