# CVE-2026-46343: Wazuh: Arbitrary File Deletion via Cluster Protocol – Incomplete Path Validation in end_receiving_file()

- Severity: High 7.5 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-19T16:07:58.056Z
- Modified: 2026-10-27T11:10:00.193Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- wazuh wazuh: >= 4.0.0, < 4.14.6; >= 5.0.0-beta1, < 5.0.0-beta2; from 4.0.0 before 4.14.6; 5.0.0

## Every score

- GitHub_M: CVSS:4.0 7.5 High `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`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/wazuh/wazuh/security/advisories/GHSA-cqvw-w2rg-327f> (exploit, vendor-advisory)
- <https://github.com/wazuh/wazuh/pull/36060> (issue-tracking, patch)
- <https://github.com/wazuh/wazuh/commit/90d43547d166cdbe65e9a3d011f946214df9179c> (patch)
- <https://github.com/wazuh/wazuh/releases/tag/v4.14.6> (patch, release-notes)
- <https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta2> (patch, release-notes)

## Sources

- CVE List: [CVE-2026-46343](https://www.cve.org/CVERecord?id=CVE-2026-46343), CVE Terms of Use, modified 2026-08-19
- NVD: [CVE-2026-46343](https://nvd.nist.gov/vuln/detail/CVE-2026-46343), Public domain, modified 2026-10-27

---

Page: https://cve.day/CVE-2026-46343 · Whole record: https://cve.day/CVE-2026-46343.json · Rebuilt by cve.day 2026-11-25T22:59:33.969Z
