Skip to content
RCE Write-up Advanced

Investigating Wazuh CVE-2026-25769: When Trusted Systems Become t

The Wazuh manager implicitly trusted data from already authenticated worker nodes and deserialised it into Python objects without strict validation, allowing crafted data to reach subprocess execution. An attacker who first compromises a worker node could therefore run system commands on the manager.

Juhaina.K Follow

Published on medium.com

A practical breakdown of how unsafe deserialization and internal trust can lead to remote command execution in a real-world SIEM environment.

Juhaina.K, on medium.com

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 write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the manager deserialised data from authenticated worker nodes without restricting which objects could be created, and that data later reached subprocess execution.

Impact

An attacker who has already compromised a worker node could execute system commands on the manager, potentially with high privileges.

What the attacker needed

Compromise of a worker node; access to internal cluster channel

The fix

Wazuh restricted deserialisation to an allowlist of approved internal objects and functions, preventing arbitrary execution.

How it was found

  1. Compromise a worker node.
  2. Craft a malicious payload.
  3. Send it over internal cluster communication (DAPI).
  4. The manager deserialises the payload.
  5. Malicious code is executed.

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 write-up has not been written yet. The Original tab links to the source.

Wazuh is a security monitoring system made of a central manager and worker nodes that talk to each other over a private, trusted channel. The manager took data from a worker and turned it into live Python objects without checking what was inside, and some of that data could end up running as a system command. So an attacker who first broke into a worker could use that trust to run commands on the more important manager.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.