ZeroHour

CVE-2026-61800

PoC large

Path Traversal in Wazuh Cluster Sync Allows Root RCE on Worker Nodes

CVSS 3.1
9.1 critical
EPSS
<1%p46
Published
()
Modified
AI analysis

Wazuh versions 4.4.0 through 4.14.6 contain a path-verification gap in the worker side of cluster file synchronization: in the non-merged branch of update_master_files_in_worker(), received files are moved to a destination derived only from safe_join(), which confines the path to /var/ossec but never checks that the file lands in the directory declared by its cluster_item_key, and the delete branch has the same gap. As a result, any party holding the cluster key can write, overwrite, or delete arbitrary files anywhere under /var/ossec on worker nodes, including locations whose contents are executed as root. Successful exploitation therefore yields remote code execution as root on affected worker nodes, with the high-privilege prerequisite reflected in the CVSS score of 9.1 (PR:H, scope changed). Only Wazuh deployments running cluster mode with worker nodes on the affected versions are exposed, and this is an incomplete fix for CVE-2026-30893, which blocked traversal outside /var/ossec but left redirection within it possible. No public proof-of-concept or confirmed in-the-wild exploitation is known; EPSS estimates roughly a 0.6% probability of exploitation within 30 days and the issue is not in CISA KEV.

What to do: Upgrade Wazuh servers/managers to version 4.14.7 or later, which is required even if you already deployed the fix for CVE-2026-30893, since that earlier patch left this gap open. Until upgrading, restrict access to the Wazuh cluster communication service (default TCP 1516) to trusted hosts, rotate the cluster key if its exposure is suspected, and audit /var/ossec on worker nodes for unexpected new, modified, or deleted files — especially in paths executed as root. Any host that held the cluster key should be treated as a potential source of root-level compromise on its worker peers.

Affected
Wazuh (open-source XDR/SIEM platform, server/manager cluster file synchronization)4.4.0 through 4.14.6; fixed in 4.14.7
Estimated exposure
largeon the order of tens of thousands of Wazuh server deployments at most — only master/worker cluster deployments on 4.4.0–4.14.6 are affected — No public scan or install-count data exists for Wazuh clusters, but Wazuh is among the most widely deployed open-source SIEM/XDR platforms; because the flaw requires cluster mode with worker nodes plus possession of the cluster key, only a…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Wazuh is an open-source security platform providing unified XDR and SIEM protection for endpoints and cloud workloads. In versions 4.4.0 through 4.14.6, a party holding the cluster key can write, overwrite, or delete arbitrary files under /var/ossec on worker nodes, leading to remote code execution as root. During cluster file synchronization, the non-merged branch of update_master_files_in_worker() moves each staged file to a destination derived only from safe_join(), which confines the path to /var/ossec but never verifies that the file lands in the directory declared by its cluster_item_key. Because the destination check present on the primary node and on the worker's merged branch was not applied, a peer can place files at attacker-chosen locations under /var/ossec, including paths that are executed as root, and the delete branch has the same gap. This is an incomplete fix for CVE-2026-30893, which addressed traversal outside /var/ossec but left this path able to redirect files anywhere within it. This issue is fixed in version 4.14.7.

Vendors
wazuh
Products
wazuh
Weakness
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.