Wazuh
Wazuh Cluster DAPI Protocol Deserialization of Untrusted Data Remote Code Execution Vulnerability
Wazuh is a free and open source platform used for threat prevention, detection, and response. From 4.0.0 until 4.14.6 and 5.0.0-beta2, AffectedItemsWazuhResult.merge() in framework/wazuh/core/results.py trusts the sort_casting field in a cluster worker's JSON response. During a distributed API merge, attacker-controlled type names are resolved through Python builtins without an allowlist. A compromised worker can set sort_casting to exec and place Python source in affected_items, causing the master to execute the payload as root when responses from multiple nodes are merged. This issue is fixed in versions 4.14.6 and 5.0.0-beta2.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 4.0.0, < 4.14.6
- >= 5.0.0-beta1, < 5.0.0-beta2
Fixed in 4.14.6, 5.0.0-beta2
Mitigation
Upgrade wazuh to 4.14.6 or 5.0.0-beta2 or later.
References
- Vendor advisory github.com/wazuh/wazuh/security/advisories/GHS…
- Patch github.com/wazuh/wazuh/pull/35757
- Patch github.com/wazuh/wazuh/commit/b29849f8abb08d78…
2 more
- Release notes github.com/wazuh/wazuh/releases/tag/v4.14.6
- Release notes github.com/wazuh/wazuh/releases/tag/v5.0.0-bet…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.