Stackurity Start free trial

CVEs / CVE-2025-24016

CVE-2025-24016: Wazuh Server Deserialization of Untrusted Data Vulnerability

Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.

Check your servers with Stackurity Already using Stackurity? Search for CVE-2025-24016

Summary

Wazuh contains a deserialization of untrusted data vulnerability that allows for remote code execution on Wazuh servers.

CISA, Known Exploited Vulnerabilities catalog

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.

The CVE record, via NVD · published 10 Feb 2025 · NVD status: Analyzed

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
wazuh wazuh>= 4.4.0, < 4.9.1—
As stated by OSV
ProductAffectedFixed in
github.com/wazuh/wazuh (Go)from 4.4.0, before 4.9.14.9.1

Package versions from GHSA-hcrc-79hj-m3qh.

Exploitation

In CISA KEV since10 Jun 2025
Due date for US federal agencies1 Jul 2025
Used in ransomware campaignsUnknown
Required actionApply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Severity

CVSS 3.19.9 critical
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H
Scored by the CNA ([email protected])
WeaknessCWE-502

References

Sources

Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.

This product uses data from the NVD API but is not endorsed or certified by the NVD.