Skip to content

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

CriticalCVSS 9.1 EPSS 0.77%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
wazuh = 5.0.0-beta1; = 5.0.0-beta2; = >= 4.3.0, < 4.14.6; = >= 5.0.0-beta1, < 5.0.0-beta3 +1 more 4.14.6 Fixed

Affected products

ProductAffected versionsFixed in
wazuh = >= 4.3.0, < 4.14.6 No fix listed
wazuh = >= 5.0.0-beta1, < 5.0.0-beta3 No fix listed
wazuh >= 4.3.0, < 4.14.6 4.14.6
wazuh = 5.0.0-beta1 No fix listed
wazuh = 5.0.0-beta2 No fix listed

References