7.5high
Wazuh: Arbitrary File Deletion via Cluster Protocol – Incomplete Path Validation in end_receiving_file()
- Severity
- 7.5high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.36% (higher than 31% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List, NVD |
All scores
| GitHub_M | 7.5high CVSS:4.0 | 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 | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Wazuh es una plataforma de código abierto y gratuita utilizada para la prevención, detección y respuesta a amenazas. Desde la versión 4.0.0 hasta la 4.14.6 y la 5.0.0-beta2, WazuhCommon.end_receiving_file() en framework/wazuh/core/cluster/common.py permite que un nodo autenticado en el clúster elimine archivos fuera de WAZUH_PATH. Una solicitud syn_i_w_m_e con un task_id desconocido llega a la rama de limpieza, donde un nombre de archivo controlado por el atacante se pasa a os.path.join sin canonicalización ni confinamiento. Las rutas absolutas y las secuencias de recorrido pueden, por lo tanto, apuntar a archivos como ossec.conf, jwt_secret.json, certificados TLS y archivos de conjunto de reglas que son accesibles para el proceso del gestor de Wazuh. La eliminación puede deshabilitar el gestor, invalidar los tokens de la API o interrumpir la conectividad del clúster y de la API. Este problema está solucionado en las versiones 4.14.6 y 5.0.0-beta2.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-46343 changed 2026-08-19 | CVE Terms of Use |
| NVD | CVE-2026-46343 changed 2026-10-27 | Public domain |