Actively Exploited in the Wild

This vulnerability is being actively exploited in the wild.

Wazuh Remote Code Execution Vulnerability via Unsafe Deserialization

Vulnerability

A remote code execution vulnerability has been identified in Wazuh servers, affecting versions 4.4.0 prior to 4.9.1. The issue arises from an unsafe deserialization of DistributedAPI parameters, which are serialized as JSON and deserialized using the 'as_wazuh_object' method. An attacker can inject an unsanitized dictionary into DAPI request or response, allowing them to forge an unhandled exception that evaluates arbitrary Python code. This vulnerability can be exploited by anyone with API access, or in some cases, by a compromised agent.

Impact

Exploitation of this vulnerability allows for arbitrary code execution on the Wazuh server.

Reproduction

The vulnerability can be reproduced by sending a 'run_as' request through the server API. This request can include a crafted JSON payload that exploits the deserialization vulnerability. If the 'getconfig' request is responded to with a malicious JSON object by a compromised agent, the vulnerability can also be triggered on the server that initiated the request.

Remediation

Users can upgrade to Wazuh version 4.9.1 or later, where this vulnerability has been fixed.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 10, 2025, 6:44 PM

Vulnerability Rating

Custom Algorithm
spread
6.2
impact
7.5
exploitability
6.5
remediation
7.7
relevance
0.0
threat
9.9
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.