Exploit database

Vulnerability

CVE-2025-24016

Remote code execution in Wazuh server

Vulnerability details

Score
9.9
Severity
critical

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H

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.

CVE Program

Exploit source choices

6 sources
Wazuh server remote code execution caused by an unsafe deserialization vulnerability.
MSF-linux--http--wazuh_auth_rce_cve_2025_24016MetasploitLinux,Unix / remotePreferred

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 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.

2025-02-10wazuh_auth_rce_cve_2025_24016.rb
0xjessie21/cve-2025-24016
GH-c7639a4450c15894d36047fd5cb9e59cGitHubUnofficial GitHub source

CVE-2025-24016: Wazuh Unsafe Deserialization Remote Code Execution (RCE)

2025-02-164 files · 43 stars
cybersecplayground/cve-2025-24016-wazuh-remote-code-execution-rce-poc
GH-ddbc9d1ebc004f9d56adc75d768ba875GitHubUnofficial GitHub source

A critical RCE vulnerability has been identified in the Wazuh server due to unsafe deserialization in the wazuh-manager package. This bug affects Wazuh versions ≥ 4.4.0 and has been patched in version 4.9.1.

2025-04-213 files · 2 stars
celsius026/poc_cve-2025-24016
GH-c7a5083f9c3245390d3a077f68b996afGitHubUnofficial GitHub source

celsius026/poc_cve-2025-24016 source repository

2025-04-152 files · 0 stars
dakshrocks21/eh_assignment_materials
GH-02bb9c10c078af461a030ba6ef1b051aGitHubUnofficial GitHub source

dakshrocks21/eh_assignment_materials source repository

2025-07-0171 files · 0 stars