CVE-2025-24016Wazuh unsafe deserialization flaw leads to code execution
CVSS score
9.9
Critical
CVSS 3.1 from github.com
Exploit probability (EPSS)
95.2%
95.2% chance of exploitation in the next 30 days, higher than 99.9% of all CVEs.
CISA KEV
Actively exploited
Added to KEV on 10 Jun 2025.
US federal deadline to fix: 1 Jul 2025.
In plain words
Anyone with API access to a Wazuh server, or a compromised agent in some configurations, can run arbitrary Python code on the server by injecting crafted data into Distributed API messages. Versions 4.4.0 up to but not including 4.9.1 are affected, and CISA reports active exploitation. Upgrade to Wazuh 4.9.1 or later, or apply the vendor mitigations and restrict API access until you can.
Official 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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Treat it as urgent
Attackers are already exploiting this flaw: CISA added it to its Known Exploited Vulnerabilities list on 10 Jun 2025.
US federal agencies must fix it by 1 Jul 2025. It's a sensible deadline for everyone else too.
CISA's full instruction
Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Check whether you're affected
Find every system running Wazuh and compare its version with the affected versions.
Update to a fixed version
- Update Wazuh to 4.9.1 or later.
If you can't update right away
Apply the workaround or mitigation in the vendor's advisory until you can update:
Check for signs of compromise
Updating closes the flaw but doesn't remove an attacker who got in earlier. Review affected systems for unknown accounts, unusual logins and configuration changes, and use any indicators of compromise the vendor or CISA publish.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H
Affected products
| Affected products | Versions |
|---|---|
| Wazuh Wazuh | ≥ 4.4.0, < 4.9.1 · >= 4.4.0, < 4.9.1 |
Weakness
- CWE-502 deserialization of untrusted data
Timeline
- Published:
- Added to CISA KEV:
- Last modified:
Frequently asked questions
Is CVE-2025-24016 being exploited?
Yes. CISA added CVE-2025-24016 to its Known Exploited Vulnerabilities catalog on 10 Jun 2025, which means there is evidence of exploitation in the wild. Its EPSS score estimates a 95.2% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2025-24016?
CVE-2025-24016 has a CVSS 3.1 base score of 9.9 (critical).
Which versions are affected?
Wazuh Wazuh (≥ 4.4.0, < 4.9.1; >= 4.4.0, < 4.9.1)
Is there a patch for CVE-2025-24016?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/wazuh/wazuh/security/advisories/GHSA-hcrc-79hj-m3qh(Exploit, Vendor Advisory)
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-24016(US Government Resource)
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.