Wazuh Manager: Remote code execution via insecure deserialization (CVE-2025-24016)
Wazuh Manager versions 4.4.0 through 4.9.0 are vulnerable to remote code execution due to insecure deserialization in the DistributedAPI component.
CVE search metadata
CVE search record: CVE-2025-24016. Severity: critical. CVSS: 9.9. EPSS: 93.84%. KEV: no. Product: Wazuh Manager (4.4.0 through 4.9.0). Brief: Wazuh Manager: Remote code execution via insecure deserialization (CVE-2025-24016). Brief link: https://feed.craftedsignal.io/briefs/2026-10-wazuh-rce-cve-2025-24016/
Triage facts
Revision 1- Applicability
- Wazuh Manager (4.4.0 through 4.9.0)
- Evidence
- Unknown
- Severity
- Critical
- Action
- Immediate escalation
- Sources
- 2 public sources
- Freshness
- Revision 1Oct 25, 17:47 UTC
- Detection
- 1 rule
- Vulnerabilities
- 1 CVE
- Source quality
- B2Likely
CVE-2025-24016 is a critical remote code execution vulnerability affecting Wazuh Manager versions 4.4.0 through 4.9.0. The vulnerability exists within the DistributedAPI, where input parameters are serialized as JSON and processed using an insecure deserialization method in framework/wazuh/core/cluster/common.py. Attackers with API access can exploit this by injecting a crafted, unsanitized dictionary - specifically targeting the __unhandled_exc__ parameter - into the /security/user/authenticate/run_as endpoint to achieve arbitrary Python code execution.
Impact
Successful exploitation allows for arbitrary code execution on the master Wazuh server with the privileges of the Wazuh service. The vulnerability can also be leveraged to trigger a denial of service (server shutdown) via unauthorized execution of the exit function.
Recommendation
Upgrade all instances of Wazuh Manager to version 4.9.1 or later immediately. Access to the Wazuh API should be restricted to trusted sources and protected by robust authentication and network-level access controls to mitigate exploitation attempts by unauthorized parties.
Immediate actions
Patch all Wazuh Manager instances to >= 4.9.1
Restrict access to the Wazuh API endpoint (/security/user/authenticate/run_as) to known trusted network segments
Threat Hunt
Identify successful POST requests to /security/user/authenticate/run_as containing the string __unhandled_exc__
Data: Web server access logs
Mitigations
Upgrade Wazuh Manager to 4.9.1 or later
CVE-2025-24016
Detection coverage 1
Detect CVE-2025-24016 Exploitation - API Request with Suspicious Deserialization Payload
criticalDetects HTTP POST requests to the Wazuh /security/user/authenticate/run_as endpoint containing suspicious deserialization keys in the request body.
Detection queries are available on the platform. Get full rules →