CyberRota Analysis
AI-GeneratedWazuh versions 4.0.0 to 4.14.6 and 5.0.0-beta2 are vulnerable due to a flaw in the AffectedItemsWazuhResult.merge() function, which allows attacker-controlled type names to be executed as Python builtins during a distributed API merge. This can lead to arbitrary code execution with root privileges if a compromised worker sets the sort_casting field to exec and injects malicious Python code. Organizations using affected versions should prioritize upgrading to versions 4.14.6 or 5.0.0-beta2 to mitigate this high-severity vulnerability.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
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.
Related CVEs
Other vulnerabilities affecting the same vendor(s)