CVE-2026-46343
JSON

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 packageVersionsReported 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.0CVE List, NVD

All scores

GitHub_M7.5high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:L/SA:N
NVD7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-22

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

Sources

SourceRecordLicence
CVE ListCVE-2026-46343 changed 2026-08-19CVE Terms of Use
NVDCVE-2026-46343 changed 2026-10-27Public domain