Skip to content
RCE Write-up Intermediate

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.

hariharanhex00 Follow

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

HariHaranK, on medium.com

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

  1. Find XWiki instances using a Shodan search for the page title.
  2. Clone the public proof-of-concept repository.
  3. Enter the cloned directory.
  4. 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.

More by hariharanhex00

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.