CVE-2024-31982 is a remote code execution vulnerability in XWiki Platform's DatabaseSearch feature. In affected versions, the database search functionality improperly handles attacker-controlled search text, allowing code injection and subsequent execution on the server. The issue affects XWiki starting from version 2.4-milestone-1 and before the fixed releases 14.10.20, 15.5.4, and 15.10-rc-1. Because database search is accessible by default to all users, exploitation can be performed by any visitor on a public wiki or by any authenticated user on a closed wiki.
Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.
What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
If you can’t patch tonight, do this now.
Main.DatabaseSearch page, as it is not XWiki's default search interface. Restrict access to the feature where possible and prioritize patching because the vulnerable functionality is otherwise broadly reachable by default.Patch, then assume compromise.
Main.DatabaseSearch page.2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (1 hidden).
This repository contains a Python exploit script (exploit.py) targeting CVE-2024-31982 in XWiki. The exploit automates authentication to a target XWiki instance using provided credentials, retrieves a CSRF token, and then leverages a Groovy code injection vulnerability in the /bin/get/Main/DatabaseSearch endpoint to execute arbitrary system commands on the server. The script is interactive, allowing the user to input commands and receive their output from the compromised server. The only other file is a minimal README.md describing the CVE and target product. The exploit is operational, requiring valid credentials and network access to the target XWiki instance.
This repository provides a Python-based tool ('cvehunter.py') for detecting and exploiting CVE-2024-31982, a vulnerability in XWiki. The tool allows users to specify a single URL or a list of URLs to test for the vulnerability. It works by sending a crafted HTTP GET request to the '/xwiki/bin/get/Main/DatabaseSearch' endpoint with a payload that attempts to execute Groovy code on the server. If the server is vulnerable, the response will contain the string 'Hello from search text:42', confirming code execution. The tool supports multi-threaded scanning, proxy configuration, and output to a file. The repository includes a README with usage instructions and a requirements.txt for dependencies. The main exploit logic is contained in 'cvehunter.py', which is the only code file. The attack vector is network-based, targeting accessible XWiki instances over HTTP(S).
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.