CVE-2026-49441: Wazuh : peer-controlled metadata key in process_files_from_worker non-merged branch allows arbitrary file write under WAZUH_PATH on Wazuh manager
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.
Security readout for executives and security teams
Plain-English summary
A trusted Wazuh cluster peer possessing the shared Fernet key can overwrite sensitive manager files. Altering the main configuration may enable commands to run as root after a service reload, potentially compromising the manager and its security operations.
Executive priority
Treat this as an urgent manager upgrade, especially where cluster credentials may be exposed or peer trust is uncertain. Compromise could undermine the security platform itself and enable root-level execution, although the attacker must already possess privileged cluster access.
Technical view
The non-merged processing branch trusts a peer-supplied file_path from files_metadata.json without confirming the destination remains within the cluster item directory. This permits arbitrary file writes under WAZUH_PATH, including ossec.conf. The affected ranges are 4.3.0 through 4.14.5 and 5.0.0-beta1 through beta2.
Likely exposure
Exposure is limited to affected Wazuh managers where an attacker controls a cluster peer and possesses the shared Fernet key. This is not described as an unauthenticated internet attack, but compromised peer credentials or cluster membership could produce manager-level impact.
Exploitation context
The bundle reports no CISA KEV listing, and the cited sources provide no evidence of active exploitation. Exploitation requires privileged cluster access through a peer holding the shared Fernet key. Successful configuration replacement can lead to root-level code execution after reload.
Researcher notes
The issue is CWE-73 path control in process_files_from_worker(). The vulnerable non-merged branch fails to constrain peer-controlled metadata to the directory selected by cluster_item_key. The documented impact is arbitrary overwrite under WAZUH_PATH; evidence does not establish writes outside that root.
Mitigation direction
Upgrade stable Wazuh installations to version 4.14.6 or later.
Upgrade Wazuh 5.0 beta installations to 5.0.0-beta3 or later.
Protect the shared Fernet key and restrict cluster participation to authorized peers.
Review the vendor advisory and release guidance before applying changes.
Validation and detection
Inventory every Wazuh manager and flag versions within the affected ranges.
Confirm all stable managers run 4.14.6 or later.
Confirm all 5.0 beta managers run beta3 or later.
Review cluster peer membership and shared-key access for unauthorized holders.
Inspect ossec.conf and other sensitive WAZUH_PATH files for unexpected changes.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-73: File access and web shell behavior lookup
File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
1ADP providers
6Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-73 · source CWE mapping
External Control of File Name or Path
External Control of File Name or Path represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.