CVE-2026-46343

Wazuh: Arbitrary File Deletion via Cluster Protocol – Incomplete Path Validation in end_receiving_file()

Published Aug 19, 2026 CVSS 4.0 · 7.5 High EPSS < 1% KEV · Not listed
Description
Wazuh is a free and open source platform used for threat prevention, detection, and response. From 4.0.0 until 4.14.6 and 5.0.0-beta2, WazuhCommon.end_receiving_file() in framework/wazuh/core/cluster/common.py allows a cluster-authenticated node to delete files outside WAZUH_PATH. A syn_i_w_m_e request with an unknown task_id reaches the cleanup branch, where an attacker-controlled filename is passed to os.path.join without canonicalization or confinement. Absolute paths and traversal sequences can therefore target files such as ossec.conf, jwt_secret.json, TLS certificates, and ruleset files that are accessible to the Wazuh manager process. Deletion can disable the manager, invalidate API tokens, or disrupt cluster and API connectivity. This issue is fixed in versions 4.14.6 and 5.0.0-beta2.

Analysis

AI-generated

Technical impact

Wazuh’s cluster handling routine WazuhCommon.end_receiving_file() permits a cluster‑authenticated node to delete arbitrary files when it processes a syn_i_w_m_e request with an unknown task_id. The routine builds a file path from the attacker‑controlled filename without normalizing or confining it, so absolute paths and traversal sequences can remove sensitive configuration files such as ossec.conf, jwt_secret.json, TLS certificates, and ruleset files. Removing these items can cause the Wazuh manager to stop, invalidate API tokens, and break cluster and API connectivity, effectively disabling key security services.

Affected Systems

The vulnerability affects the open‑source Wazuh platform, specifically deployments using Wazuh 4.0.0 through 4.14.5 and pre‑5.0.0‑beta2 releases. Security patches are included in Wazuh version 4.14.6 and newer, as well as in the 5.0.0‑beta2 release.

Risk and Exploitability

The CVSS score of 7.5 indicates high severity. EPSS score of 0.00264 indicates a very low probability of exploitation, but the deletion of critical system files remains a significant risk, especially in environments with cluster nodes that can authenticate. The vulnerability is not listed in the CISA KEV catalog, but the potential for a denial‑of‑service and integrity breach warrants aggressive remediation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Wazuh to the patched releases 4.14.6 or 5.0.0‑beta2 or newer.
  • Verify that only trusted nodes are allowed to join the Wazuh cluster and that cluster communication is restricted to the internal network.
  • Apply strict file and directory permissions so that only the Wazuh manager process can modify critical configuration files, limiting the damage of any path traversal or deletion attempt.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
CPEs cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*
cpe:2.3:a:wazuh:wazuh:5.0.0:beta1:*:*:*:*:*:*
Metrics cvssV3_1

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

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.0.0 until 4.14.6 and 5.0.0-beta2, WazuhCommon.end_receiving_file() in framework/wazuh/core/cluster/common.py allows a cluster-authenticated node to delete files outside WAZUH_PATH. A syn_i_w_m_e request with an unknown task_id reaches the cleanup branch, where an attacker-controlled filename is passed to os.path.join without canonicalization or confinement. Absolute paths and traversal sequences can therefore target files such as ossec.conf, jwt_secret.json, TLS certificates, and ruleset files that are accessible to the Wazuh manager process. Deletion can disable the manager, invalidate API tokens, or disrupt cluster and API connectivity. This issue is fixed in versions 4.14.6 and 5.0.0-beta2.
Title Wazuh: Arbitrary File Deletion via Cluster Protocol – Incomplete Path Validation in end_receiving_file()
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 7.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:L/SA:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 19, 2026, 5:47 PM
Reserved
May 13, 2026, 6:37 PM
Status
Analyzed
Published
Aug 19, 2026, 4:17 PM
Modified
Oct 27, 2026, 11:10 AM