CVE-2025-24016

CRITICAL KEV NUCLEI

Wazuh server remote code execution caused by an unsafe deserialization vulnerability.

Title source: metasploit
STIX 2.1

Exploitation Summary

CVE-2025-24016 is actively exploited and listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added June 10, 2025. EIP tracks 9 public exploits from researchers including 0xjessie21, guinea-offensive-security, MuhammadWaseem29, including a Metasploit module exploits/linux/http/wazuh_auth_rce_cve_2025_24016. A Nuclei detection template is also available.

AI-analyzed exploit summary This is a functional exploit PoC for CVE-2025-24016, targeting an unsafe deserialization vulnerability in Wazuh servers. It leverages dictionary injection in DAPI requests to achieve remote code execution via a reverse shell.

Description

Wazuh is a free and open source platform used for threat prevention, detection, and response. Starting in version 4.4.0 and prior to version 4.9.1, an unsafe deserialization vulnerability allows for remote code execution on Wazuh servers. DistributedAPI parameters are a serialized as JSON and deserialized using `as_wazuh_object` (in `framework/wazuh/core/cluster/common.py`). If an attacker manages to inject an unsanitized dictionary in DAPI request/response, they can forge an unhandled exception (`__unhandled_exc__`) to evaluate arbitrary python code. The vulnerability can be triggered by anybody with API access (compromised dashboard or Wazuh servers in the cluster) or, in certain configurations, even by a compromised agent. Version 4.9.1 contains a fix.

Exploits (9)

nomisec WORKING POC 42 stars
by 0xjessie21 · remote-auth
https://github.com/0xjessie21/CVE-2025-24016

This is a functional exploit PoC for CVE-2025-24016, targeting an unsafe deserialization vulnerability in Wazuh servers. It leverages dictionary injection in DAPI requests to achieve remote code execution via a reverse shell.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Wazuh Server (version not specified)
Auth required
Prerequisites: Network access to the target Wazuh server · Valid credentials for authentication · Listener set up for reverse shell
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 7 stars
by guinea-offensive-security · remote
https://github.com/guinea-offensive-security/Wazuh-RCE

This PoC exploits a deserialization vulnerability in Wazuh to achieve remote code execution (RCE) via a crafted JSON payload. It establishes a reverse shell to a specified IP and port using a bash command injected through the `__unhandled_exc__` key.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Wazuh 8.4
Auth required
Prerequisites: Valid credentials for Wazuh authentication · Network access to the target Wazuh server · Listener set up for reverse shell
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 5 stars
by MuhammadWaseem29 · remote
https://github.com/MuhammadWaseem29/CVE-2025-24016

This PoC demonstrates a remote code execution (RCE) vulnerability in Wazuh server due to unsafe deserialization in the `wazuh-manager` package. The exploit leverages the `run_as` endpoint to inject malicious payloads, leading to arbitrary code execution on the server.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Wazuh wazuh-manager >= 4.4.0, < 4.9.1
Auth required
Prerequisites: API access to Wazuh server · Valid credentials for authentication
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec SCANNER 4 stars
by huseyinstif · remote
https://github.com/huseyinstif/CVE-2025-24016-Nuclei-Template

This repository contains a Nuclei template designed to detect an unsafe deserialization vulnerability (CVE-2025-24016) in Wazuh servers. The template sends a crafted JSON payload to trigger a NameError, indicating the presence of the vulnerability.

Classification
Scanner 90%
Attack Type
Deserialization
Complexity
Trivial
Reliability
Reliable
Target: Wazuh
No auth needed
Prerequisites: Access to the Wazuh server's DistributedAPI endpoint
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec SCANNER 2 stars
by rxerium · poc
https://github.com/rxerium/CVE-2025-24016

This repository contains a Nuclei HTTP template for detecting CVE-2025-24016, an unsafe deserialization vulnerability in Wazuh web interface versions 4.4.0 to 4.9.0. The template checks for the presence of the Wazuh UI and confirms the version range to identify potential exposure to RCE.

Classification
Scanner 90%
Attack Type
Deserialization
Complexity
Trivial
Reliability
Reliable
Target: Wazuh web interface versions 4.4.0 to 4.9.0
No auth needed
Prerequisites: Access to the target URL or /app/login page of the Wazuh web interface
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by cybersecplayground · remote
https://github.com/cybersecplayground/CVE-2025-24016-Wazuh-Remote-Code-Execution-RCE-PoC

This repository contains a functional PoC for CVE-2025-24016, exploiting unsafe deserialization in Wazuh's DistributedAPI to achieve remote code execution via crafted JSON payloads. The exploit leverages Python's `__reduce__` method to execute arbitrary commands on the target system.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Wazuh versions ≥ 4.4.0 (patched in 4.9.1)
Auth required
Prerequisites: Valid credentials for Wazuh API access · Network access to the Wazuh API endpoint
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC 1 stars
by GloStarRx1 · poc
https://github.com/GloStarRx1/CVE-2025-24016

This PoC demonstrates a remote code execution (RCE) vulnerability in Wazuh server due to unsafe deserialization in the `wazuh-manager` package. The exploit leverages the `run_as` endpoint to inject malicious payloads, leading to arbitrary code execution on the server.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Wazuh wazuh-manager >= 4.4.0, < 4.9.1
Auth required
Prerequisites: API access to Wazuh server · Valid authentication credentials
devstral-2 · analyzed Feb 16, 2026 Full analysis →
nomisec WORKING POC
by celsius026 · remote
https://github.com/celsius026/poc_CVE-2025-24016

This exploit leverages a deserialization vulnerability in Wazuh's worker authentication endpoint to execute arbitrary commands via a crafted JSON payload. It requires valid credentials and targets the `/security/user/authenticate/run_as` endpoint.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: Wazuh (version not specified)
Auth required
Prerequisites: Valid credentials for Wazuh worker server · Network access to the target server
devstral-2 · analyzed Feb 16, 2026 Full analysis →
metasploit WORKING POC EXCELLENT
rubypoc
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/http/wazuh_auth_rce_cve_2025_24016.rb

This Metasploit module exploits an unsafe deserialization vulnerability (CVE-2025-24016) in Wazuh server versions 4.4.0 to 4.9.1. It leverages forged exceptions in JSON-serialized DAPI parameters to achieve remote code execution via the `os.system` call.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Wazuh server 4.4.0 to 4.9.1
Auth required
Prerequisites: Valid Wazuh API credentials · Network access to Wazuh API (port 55000)
devstral-2 · analyzed Feb 16, 2026 Full analysis →

Nuclei Templates (1)

Wazuh - Unsafe Deserialization Remote Code Execution
CRITICALby Hüseyin TINTAŞ,ritikchaddha
Shodan: title:"Wazuh"
FOFA: app="Wazuh"

References (2)

Core 2

Scores

CVSS v3 9.9
EPSS 0.9387
EPSS Percentile 99.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation active
Automatable no
Technical Impact total

Details

CISA KEV 2025-06-10
VulnCheck KEV 2025-05-03
ENISA EUVD EUVD-2025-3595
CWE
CWE-502
Status published
Products (2)
wazuh/wazuh 4.4.0 - 4.9.1
wazuh/wazuh 4.4.0 - 4.9.1Go
Published Feb 10, 2025
KEV Added Jun 10, 2025
Tracked Since Feb 18, 2026