Description
This module exploits a template injection vulnerability in the the XWiki Platform. XWiki includes a macro called SolrSearch (defined in Main.SolrSearchMacros) that enables full-text search through the embedded Solr engine. The vulnerability stems from the way this macro evaluates search parameters in Groovy, failing to sanitize or restrict malicious input.
This vulnerability affects XWiki Platform versions >= 5.3-milestone-2 and < 15.10.11, and versions >= 16.0.0-rc-1 and < 16.4.1. Successful exploitation may result in the remote code execution under the privileges of the web server, potentially exposing sensitive data or disrupting survey operations.
An attacker can execute arbitrary system commands in the context of the user running the web server.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/multi/http/xwiki_unauth_rce_cve_2025_24893msf undefined(xwiki_unauth_rce_cve_2025_24893) > show actions ...actions...msf undefined(xwiki_unauth_rce_cve_2025_24893) > set ACTION < action-name >msf undefined(xwiki_unauth_rce_cve_2025_24893) > show options ...show and set options...msf undefined(xwiki_unauth_rce_cve_2025_24893) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub