Wazuh Cluster DAPI Protocol Deserialization of Untrusted Data Remote Code Execution Vulnerability
The Wazuh cluster's DAPI handling of the sort_casting field fails to properly validate user-supplied data, leading to deserialisation of untrusted data. An attacker who already has low-privileged code execution on a worker node could use this to run code as root on the master node.
Originally disclosed on Zero Day Initiative
This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Wazuh. An attacker must first obtain the ability to execute low-privileged code on a worker node in order to exploit this vulnerability.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the sort_casting field is deserialised without validating or restricting the data, allowing attacker-controlled objects to be reconstructed.
Impact
An attacker with existing low-privileged code execution on a worker node could execute arbitrary code as root on the master node.
What the attacker needed
Low-privileged code execution on a worker node; network-adjacent access to the cluster
The fix
Wazuh issued an update to correct the vulnerability.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Deserialisation is when a program turns stored or sent data back into live objects; if that data is not checked, an attacker can craft it so the program builds something harmful. Here, a field called sort_casting in Wazuh's cluster communication is turned back into objects without proper checks. Someone who already has a small foothold on a worker machine could use this to take full control of the main master machine.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.