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

Published Aug 19, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Wazuh's non‑merged process_files_from_worker() branch allows a cluster peer that controls the file_path key in files_metadata.json to specify any file path. The system concatenates this path with WAZUH_PATH without validating containment, enabling overwriting critical files such as /var/ossec/etc/ossec.conf. Such overwrite can insert malicious root‑executed commands and trigger code execution when the Wazuh service reloads, leading to full system compromise.

Affected Systems

The vulnerability affects Wazuh version 4.3.0 through 4.14.6 and the beta 5.0.0‑beta3 release. Any deployment using the non‑merged process_files_from_worker() branch with a cluster peer sharing the Fernet key is at risk.

Risk and Exploitability

The CVSS score of 9.1 reflects a high‑severity threat. Although the EPSS score is not available, the reliance on a shared Fernet key by a cluster peer provides an authenticated attack vector that can be abused to write arbitrary files. The vulnerability is not yet listed in the CISA KEV catalog, but its potential for code execution warrants immediate attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Wazuh manager to version 4.14.6 or newer (e.g., 5.0.0‑beta3).
  • Restrict cluster communication to trusted nodes and verify Fernet key usage.
  • Regenerate or revoke any compromised Fernet keys and restart affected services.

Generated by OpenCVE AI on August 20, 2026 at 14:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*
cpe:2.3:a:wazuh:wazuh:5.0.0:beta1:*:*:*:*:*:*
cpe:2.3:a:wazuh:wazuh:5.0.0:beta2:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Wazuh
Wazuh wazuh
Vendors & Products Wazuh
Wazuh wazuh
Type Values Removed Values Added
Description 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.
Title Wazuh : peer-controlled metadata key in process_files_from_worker non-merged branch allows arbitrary file write under WAZUH_PATH on Wazuh manager
Weaknesses CWE-73
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 19, 2026, 6:18 PM
Reserved
May 30, 2026, 2:43 AM
Status
Analyzed
Published
Aug 19, 2026, 5:18 PM
Modified
Oct 26, 2026, 11:10 AM