Skip to content
RedCVE

CVE-2025-24016Wazuh unsafe deserialization flaw leads to code execution

ExploitedWazuhPublished:

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

  1. 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.
  2. Check whether you're affected

    Find every system running Wazuh and compare its version with the affected versions.

  3. Update to a fixed version

    • Update Wazuh to 4.9.1 or later.
  4. If you can't update right away

    Apply the workaround or mitigation in the vendor's advisory until you can update:

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

  6. 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 productsVersions
Wazuh Wazuh≥ 4.4.0, < 4.9.1 · >= 4.4.0, < 4.9.1

Weakness

  • CWE-502 deserialization of untrusted data

Timeline

  1. Published:
  2. Added to CISA KEV:
  3. 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

Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.