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.
Fix
Patch, vendor advisory and mitigation references on NVD 6
- https://github.com/wazuh/wazuh/commit/b29849f8abb08d78f257e6106b6111a8a1b0e621 Patch
- https://github.com/wazuh/wazuh/pull/35757 Issue Tracking, Patch
- https://github.com/wazuh/wazuh/releases/tag/v4.14.6 Patch, Release Notes
- https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta2 Patch, Release Notes
- https://github.com/wazuh/wazuh/security/advisories/GHSA-8c6v-7g3w-prrq Exploit, Vendor Advisory
- https://github.com/wazuh/wazuh/security/advisories/GHSA-8c6v-7g3w-prrq Exploit, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 8.4 · wazuhNVD modified 2026-10-26 11:10
Affected (CPE criteria) 3
cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*cpe:2.3:a:wazuh:wazuh:5.0.0:beta1:*:*:*:*:*:*cpe:2.3:a:wazuh:wazuh:5.0.0:beta2:*:*:*:*:*:*
References 6
- https://github.com/wazuh/wazuh/commit/b29849f8abb08d78f257e6106b6111a8a1b0e621 Patch
- https://github.com/wazuh/wazuh/pull/35757 Issue Tracking, Patch
- https://github.com/wazuh/wazuh/releases/tag/v4.14.6 Patch, Release Notes
- https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta2 Patch, Release Notes
- https://github.com/wazuh/wazuh/security/advisories/GHSA-8c6v-7g3w-prrq Exploit, Vendor Advisory
- https://github.com/wazuh/wazuh/security/advisories/GHSA-8c6v-7g3w-prrq Exploit, Vendor Advisory