Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain shared cluster Fernet key
-
DeliveryConnect as authorized cluster peer
-
ExploitUpload crafted extra-valid archive with traversal file_path
-
InstallOverwrite /var/ossec/etc/ossec.conf on master
-
C2Configure root-executed command
-
ExecuteTrigger service reload
-
ImpactExecute code as root
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
|
| Exploitation Conditions | Exploitation requires that Wazuh is deployed in cluster mode and that the attacker is (or controls) an authenticated cluster peer holding the shared Fernet encryption key - this maps to the CVSS PR:H. The attacker must send a crafted 'extra-valid' sync archive whose files_metadata.json contains a non-merged entry with a traversal file_path escaping the directory selected by cluster_item_key. Limiting factors: standalone/non-clustered managers are not affected; the shared key must be known, so a fully external unauthenticated attacker cannot trigger it directly; and meaningful impact (root RCE) depends on overwriting ossec.conf followed by a manager service reload. |
| Impact | This is a genuine high-severity issue but with a meaningful precondition gate. The CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H, 9.1) reflects network reach, low complexity, and full CIA impact with scope change, but PR:H is the pivotal metric: the attacker must already be an authorized cluster peer possessing the shared Fernet key. That means the realistic threat is a compromised or rogue worker node, or an insider, rather than an anonymous internet attacker. No EPSS score, no CISA KEV listing, and no public POC were provided, so there is no evidence of active or automated exploitation - this reads as a targeted, insider/lateral-movement risk rather than a mass-exploitation event. The high CVSS is justified by the RCE-as-root outcome, but prioritization should weight the fact that exploitation presupposes cluster membership; environments running standalone (non-clustered) managers are not exposed. Net: patch promptly on clustered deployments, but this is not an internet-facing spray-and-pray bug. |
| Exploit ScenarioDerived | An attacker who has compromised a Wazuh worker node (or otherwise obtained the shared cluster Fernet key) crafts an extra-valid sync archive whose files_metadata.json sets file_path to traverse outside the intended sync directory. The master accepts it and overwrites /var/ossec/etc/ossec.conf with a configuration that defines an attacker-controlled command run as root; on the next manager reload the command executes, yielding root code execution on the master. No public POC is currently identified, but the fixing commit publicly discloses the exact flawed logic. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 19, 2026
Path-traversal-driven remote code execution in Wazuh 4.3.0 through 4.14.5 (and 5.0.0-beta1/beta2) lets a cluster peer that holds the shared Fernet key overwrite security-sensitive files on the master node. Because the non-merged branch of process_files_from_worker() in master.py trusts the peer-supplied file_path from files_metadata.json without confining it under the directory implied by cluster_item_key, an attacker can replace /var/ossec/etc/ossec.conf to configure root-executed commands and gain code execution on the next service reload. No public exploit identified at time of analysis, but a vendor fix and the fixing commit are public, making the root cause easy to study.
RemediationAI
Vendor-released patch: upgrade to Wazuh 4.14.6 or 5.0.0-beta3, which add path-confinement (safe_join + os.path.commonpath verification against the cluster_item_key directory) and an excluded_files blocklist in process_files_from_worker() (PR https://github.com/wazuh/wazuh/pull/36296 , commit 7f13682cf5f01f69452f723a608ab2d89cfb2133 ). Where immediate upgrade is not possible, reduce exposure by treating the cluster channel as a trust boundary: rotate and tightly guard the shared cluster Fernet key, restrict network access to the cluster port (default 1516/tcp) so only known master/worker nodes can connect, and monitor integrity of /var/ossec/etc/ossec.conf for unexpected changes. As a stronger stopgap, running managers standalone (non-clustered) removes the attack surface entirely at the cost of losing multi-node scaling/HA. Review the vendor advisory (GHSA-3v57-hgvj-3vj2) for authoritative guidance.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Wazuh is an open-source security platform (SIEM/XDR) whose manager can run in a multi-node cluster where workers synchronize files to a master over an encrypted channel keyed by a shared Fernet secret. During synchronization, the master's process_files_from_worker() reconstructs destination paths for incoming files. For non-merged files it takes the peer-controlled file_path key from files_metadata.json and joins it to common.WAZUH_PATH, but it does not verify that the resulting path stays within the directory selected by cluster_item_key. This is a textbook CWE-73 (External Control of File Name or Path) issue: a trusted-looking metadata field is used to build a filesystem path, enabling directory traversal outside the intended sync folder. The affected component is confirmed by CPE cpe:2.3:a:wazuh:wazuh and the fixing PR #36296 / commit 7f13682, which adds a safe_join + os.path.commonpath confinement check and an excluded_files blocklist.
Know when Wazuh gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Attacker must be an authenticated cluster peer with the shared Fernet key (PR:H) over the network (AV:N); overwriting root-owned config escapes the sync component to yield full-system root RCE (S:C, C/I/A:H).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Wazuh is a free and open source platform used for threat prevention, detection, and response. From 4.3.0 until 4.14.6 and 5.0.0-beta3, the non-merged branch of process_files_from_worker() in framework/wazuh/core/cluster/master.py trusts a peer-controlled file_path key from files_metadata.json. The destination is joined to WAZUH_PATH without proving that it remains inside the directory selected by cluster_item_key. A cluster peer holding the shared Fernet key can upload a crafted extra-valid archive and overwrite security-sensitive files such as /var/ossec/etc/ossec.conf. Replacing ossec.conf can configure root-executed commands and lead to code execution after a service reload. This issue is fixed in versions 4.14.6 and 5.0.0-beta3.
Executive ViewAI
Wazuh security monitoring platforms (versions 4.3.0-4.14.5) can be compromised by unauthorized cluster peers to execute arbitrary code as root, undermining the integrity of your security intelligence and incident detection capabilities. This affects any organization running affected Wazuh versions in clustered deployments; a patch is available and should be applied urgently to prevent compromise of your security infrastructure.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
In the wazuh-slack active response script in Wazuh 4.2.x before 4.2.5, untrusted user agents are passed to a curl comman
Path-traversal-driven root code execution affects the Wazuh security platform's cluster synchronization layer in version
Arbitrary file read in Wazuh cluster deployments (4.0.0 through 4.14.5, and 5.0.0-beta1/beta2) lets a peer node that alr
Arbitrary file write leading to root remote code execution affects Wazuh worker nodes in clustered deployments running v
A critical deserialization vulnerability in Wazuh's cluster mode allows attackers with access to any worker node to achi
Remote code execution on the Wazuh cluster master node is achievable by any attacker who controls a cluster worker node,
Path traversal in Wazuh's ip-customblock active response script allows low-privileged remote attackers to create or dele
The agent in OSSEC through 3.1.0 on Windows allows local users to gain NT AUTHORITY\SYSTEM access via Directory Traversa
Cluster key disclosure in Wazuh Manager versions 4.0.0 through 4.14.4 enables a two-stage privilege escalation: a low-pr
Unauthenticated remote denial of service in the Wazuh cluster daemon (wazuh-clusterd) allows a network peer to exhaust p
Arbitrary file deletion on a Wazuh manager via the cluster synchronization protocol allows a cluster-authenticated attac
EUVD-2026-62571
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB