Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2025-24016: Unsafe Deserialization RCE in Wazuh DistributedAPI

Published Feb 10, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.9Critical · v3.1
EPSS95.2%100th percentile
CISA KEVYesAdded Jun 10, 2025
In the wildActivePer CISA KEV
Vendor
Wazuh
IdentifiersCVE-2025-24016CWE-502 · Deserialization of Untrusted Data

CVE-2025-24016 is an unsafe deserialization vulnerability in the Wazuh server manager package affecting versions 4.4.0 through 4.9.0. DistributedAPI (DAPI) parameters are serialized as JSON and deserialized by as_wazuh_object. An attacker who injects an unsanitized dictionary into a DAPI request or response can forge an unhandled_exc object that causes arbitrary Python code evaluation on the server. Attack paths include Wazuh API access through a compromised dashboard or cluster server and, in certain configurations, a compromised agent. Wazuh 4.9.1 fixes the vulnerability.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation enables arbitrary Python code execution on an affected Wazuh server, threatening server integrity and availability. Exploitation attempts have been observed delivering Mirai-family malware, including LZRD and Resbot, for botnet operations and DDoS attacks. The documented Akamai observations originated from honeypots rather than confirmed compromised production Wazuh endpoints.

Mitigation

If you can’t patch tonight, do this now.

Prevent direct internet exposure of the Wazuh server API, replace default credentials, and follow Wazuh system-hardening guidance. Increase monitoring for suspicious API requests and server activity, using available Snort and YARA detection rules for associated exploitation and malware.

Remediation

Patch, then assume compromise.

Upgrade affected Wazuh deployments to version 4.9.1 or later. Prioritize deployment of the update after appropriate testing. Patching does not remove malware or otherwise remediate an earlier compromise; investigate suspicious activity and address any identified compromise separately.

Public exploits

Exploits

6 exploits validated by Mallory's analysis. Hidden: 5 rejected by Mallory's analysis as not a working exploit.

View more in app →
wazuh_auth_rce_cve_2025_24016.rbThis repository contains a single Metasploit module targeting CVE-2025-24016, an unsafe deserialization vulnerability in Wazuh server (versions 4.4.0 to 4.9.0). The exploit leverages the Wazuh API, requiring valid credentials, to send a crafted JSON object to the '/security/user/authenticate/run_as' endpoint. This triggers the deserialization flaw, resulting in arbitrary command execution on the server via Python's os.system. The module includes routines for authenticating to the API, checking the Wazuh version, and executing the payload. The exploit is weaponized, allowing for customizable payloads through the Metasploit framework. The only file present is a Ruby script structured as a standard Metasploit exploit module, making use of the HttpClient mixin to interact with the Wazuh API over the network (default port 55000, SSL enabled).Disclosed Feb 10, 2025 · Framework: metasploit · ruby · networkWeaponizedCVE-2025-24016This repository contains a Python proof-of-concept exploit for CVE-2025-24016, a remote code execution (RCE) vulnerability in Wazuh servers. The exploit leverages unsafe deserialization in the Wazuh DistributedAPI (DAPI), specifically by injecting a crafted dictionary into a DAPI request to the '/security/user/authenticate/run_as' endpoint. The main script, 'CVE-2025-24016.py', is a command-line tool that requires the attacker to specify the target URL, their own IP address, and a port for the reverse shell. It authenticates to the Wazuh server (with default or user-supplied credentials), sends a malicious JSON payload that triggers the vulnerability, and attempts to establish a reverse shell back to the attacker's machine. The repository also includes a README with detailed usage instructions and a requirements.txt for dependencies. The exploit is operational, providing a working reverse shell if the target is vulnerable and accessible. No detection-only scripts are present; the code is a functional exploit.0xjessie21 · Disclosed Feb 16, 2025 · python · networkOperationalpoc_CVE-2025-24016This repository contains a Python exploit script (exploit_wazuh.py) and a requirements.txt file specifying dependencies. The exploit targets Wazuh worker servers accessible over HTTPS, defaulting to port 55000, and requires valid HTTP Basic Authentication credentials. The script sends a specially crafted JSON payload to the '/security/user/authenticate/run_as' endpoint, exploiting insecure deserialization or command injection to execute arbitrary system commands on the server. The output of the command is returned to the attacker. The repository is operational, providing a working exploit with customizable command execution, but does not include advanced payload management or integration with exploitation frameworks.celsius026 · Disclosed Apr 15, 2025 · python · networkOperationalCVE-2025-24016-Wazuh-Remote-Code-Execution-RCE-PoCThis repository provides a working proof-of-concept (PoC) exploit for CVE-2025-24016, a critical remote code execution (RCE) vulnerability in the Wazuh server (wazuh-manager) versions 4.4.0 through 4.9.0. The exploit leverages unsafe deserialization in the Wazuh API's /security/user/authenticate/run_as endpoint, allowing an authenticated attacker to execute arbitrary Python code on the server. The main exploit script (CVE-2025-24016-POC.py) constructs a malicious JSON payload using the __reduce__ method to trigger code execution via Python's os.system or subprocess modules. The script sends this payload to the vulnerable endpoint using HTTP POST, authenticating with a base64-encoded username and password. The README.md provides detailed vulnerability context, example payloads, and mitigation advice. The repository contains three files: the exploit script (Python), a README with technical and usage details, and a standard MIT license. The exploit is operational, requiring valid API credentials and network access to the Wazuh API endpoint.cybersecplayground · Disclosed Apr 21, 2025 · python · networkOperationalWazuh-RCEThis repository contains a single Python exploit script (CVE-2025-24016.py) and a brief README. The exploit targets Wazuh version 8.4, specifically exploiting CVE-2025-24016, a remote code execution (RCE) vulnerability. The script requires the attacker to provide the target URL (typically https://<worker-server>:55000/security/user/authenticate/run_as), the attacker's IP (LHOST), and port (LPORT) for the reverse shell. Optional arguments include authentication credentials (defaulting to 'wazuh-wui' and 'MyS3cr37P450r.*-'), proxy usage, and configuration file path. The exploit works by sending a crafted JSON payload to the Wazuh server's authentication endpoint, abusing deserialization to trigger os.system and execute a bash reverse shell command. If successful, the Wazuh server connects back to the attacker's machine, providing a shell. The script includes input validation, logging, and colored output for usability. No detection or scanning functionality is present; this is a direct exploit. The only endpoints referenced are the Wazuh API endpoint, the attacker's IP/port for the reverse shell, and an optional local proxy for traffic interception.guinea-offensive-security · Disclosed Jul 13, 2025 · python · networkOperationalAshwesker-CVE-2025-24016This repository provides a working proof-of-concept (PoC) exploit for CVE-2025-24016, a remote code execution (RCE) vulnerability in Wazuh server versions 4.4.0 through 4.9.0. The exploit leverages unsafe deserialization in the Wazuh DistributedAPI, specifically targeting the '/security/user/authenticate/run_as' endpoint. The main script, 'CVE-2025-24016.py', is a Python tool that takes the target URL, attacker's IP (LHOST), and port (LPORT) as arguments, along with optional authentication credentials (defaulting to 'wazuh-wui:MyS3cr37P450r.*-'). It crafts a malicious JSON payload that abuses the '__unhandled_exc__' deserialization to execute arbitrary Python code on the server, resulting in a reverse shell connection back to the attacker's machine. The exploit requires valid API credentials and network access to the Wazuh server's API endpoint. The repository also includes a README.md with detailed vulnerability explanation, usage instructions, and a sample Burp Suite request. The code is a functional PoC and does not include advanced features or payload customization, but demonstrates the vulnerability's impact clearly.Ashwesker · Disclosed Jun 10, 2025 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
WazuhWazuhapplication
FAQ

Frequently asked questions

Is CVE-2025-24016 exploited in the wild?
Yes. As of Oct 11, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Jun 10, 2025.
Is there a public exploit for CVE-2025-24016?
Yes. Mallory tracks 6 public exploits or proofs of concept for CVE-2025-24016, the earliest disclosed Feb 10, 2025.
Is there a patch for CVE-2025-24016?
Upgrade affected Wazuh deployments to version 4.9.1 or later. Prioritize deployment of the update after appropriate testing.
What products are affected by CVE-2025-24016?
Wazuh.
How severe is CVE-2025-24016?
CVE-2025-24016 has a CVSS v3.1 score of 9.9 (Critical) and an EPSS score of 95.2% (100th percentile) as of Oct 11, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malware14Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity34Community discussion across Reddit, Mastodon, and other social sources.