ZERO-DAY CVE-2025–24893 “XWiki Platform — Remote Code Execution” POC
The XWiki SolrSearch endpoint renders user-supplied search text through wiki macros, so an unauthenticated guest can inject a Groovy macro that runs shell commands on the server. This gives full remote code execution and compromise of the whole installation.
Published on medium.com
XWiki allows for the storing of structured data and the execution of server-side script within the wiki interface. Scripting languages including Velocity, Apache Groovy, Python, Ruby and PHP can be written directly into wiki pages using wiki macros
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the SolrSearch endpoint passes the user-controlled search text into the wiki macro/scripting renderer without sanitising it, allowing macro injection.
Impact
An unauthenticated attacker could fully compromise the server, steal confidential information, install ransomware, or pivot into the internal network.
What the attacker needed
Network access to the XWiki instance; no account needed
The fix
It was fixed in XWiki 15.10.11, 16.4.1 and 16.5.0RC1.
How it was found
- Find XWiki instances using a Shodan search for the page title.
- Clone the public proof-of-concept repository.
- Enter the cloned directory.
- Run the Python exploit script against a target.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
XWiki lets people write small scripts inside wiki pages. The search page was passing the search text into that scripting engine without cleaning it, so a visitor could sneak in a script that runs commands on the server. That means an outsider could read files or take over the machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.