Sploitus

Exploit for Code Injection in Xwiki

githubexploit · 2025-08-09

Exploit Code

README53 lines
## https://sploitus.com/exploit?id=8FEBB737-08AF-5D85-9F11-F21477D07CCA
# CVE-2025-24893

```
# Exploit Title: XWiki 15.10.10 - Unauthenticated Remote Code Execution
# Date: 09/08/2025
# Exploit Author: D3Ext
# Vendor Homepage: https://www.xwiki.org/
# Software Link: https://github.com/xwiki/xwiki-platform
# Version: 15.10.10
# Tested on: Kali Linux 2025
# CVE: CVE-2025-24893
```

## Explanation

This repository contains a POC (Proof of Concept) of the CVE-2025-24893 vulnerability, which affects to XWiki 15.10.10 version. XWiki includes a macro called SolrSearch (defined in Main.SolrSearchMacros) enabling full-text search through the engine. The vulnerability stems from the way this macro evaluates search parameters in Groovy, failing to sanitize or restrict malicious input. Thus, unauthenticated attackers are able to execute arbitrary Groovy code remotely without authentication or prior access.

Vulnerable path:

`/xwiki/bin/view/Main/SolrSearchMacros?search=...`

## Usage

```
usage: CVE-2025-24893.py [-h] --url URL --command COMMAND

XWiki 15.10.10 - Unauthenticated Remote Code Execution (RCE)

options:
  -h, --help         show this help message and exit
  --url URL          URL of the web root
  --command COMMAND  command to execute
```

## Demo



## References

```
https://nvd.nist.gov/vuln/detail/CVE-2025-24893
https://www.offsec.com/blog/cve-2025-24893/
https://www.wiz.io/vulnerability-database/cve/cve-2025-24893
https://www.incibe.es/en/incibe-cert/early-warning/vulnerabilities/cve-2025-24893
```

## License

This project is under [MIT](https://github.com/D3Ext/CVE-2024-25641/blob/main/LICENSE) license

Copyright © 2025, *D3Ext*