CVE-2026-74040

Wazuh 3.9.0 before 4.14.8 Arbitrary File Overwrite RCE via process_files_from_worker

Published Oct 13, 2026 CVSS 4.0 · 9.4 Critical EPSS < 1% KEV · Not listed
Description
Wazuh versions from 3.9.0 before 4.14.8 contain an arbitrary file overwrite vulnerability in MasterHandler.process_files_from_worker allowing a cluster worker to overwrite protected master files. Attackers controlling a worker can use a trailing-slash basename bypass and missing extra_valid enforcement to overwrite ossec.conf and agent.conf, achieving root remote code execution across the manager and every agent.

Analysis

AI-generated

Technical impact

The vulnerability allows a malicious cluster worker to overwrite protected configuration files on the Wazuh manager, specifically ossec.conf and agent.conf. By exploiting a trailing‑slash basename bypass and a missing enforcement guard in MasterHandler.process_files_from_worker, an attacker who controls a worker can manipulate those files with root privileges. This results in the ability to execute arbitrary code on the manager and every connected agent, delivering full remote code execution across the entire cluster.

Affected Systems

The issue affects Wazuh Manager versions from 3.9.0 up to, but not including, 4.14.8. Any environment running one of these releases and participating in a Wazuh cluster can be impacted, including all agents that rely on the manager’s configuration files.

Risk and Exploitability

With a CVSS score of 9.4 the vulnerability is deemed critical. The EPSS score is not available, and the flaw is not listed in the CISA KEV catalog. Exploitation requires the attacker to control a cluster worker or compromise a worker’s host. Once the worker is trusted, it can overwrite the protected files, giving the attacker root privileges on the manager and the ability to affect all agents. The lack of a network segregation or authentication measure for workers dramatically increases the risk of the attack vector, making the flaw highly exploitable in environments where worker nodes are not strictly isolated from the manager.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Wazuh Manager to version 4.14.8 or later to eliminate the flaw.
  • Restrict cluster worker nodes to trusted, hardened systems and enforce strict authentication so that only authorized workers can communicate with the manager.
  • If possible, isolate or disable any workers that have not been updated or are running untrusted code until a remediation is applied.

Generated by OpenCVE AI on October 13, 2026 at 15:10 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
First Time appeared Wazuh wazuh-manager
Vendors & Products Wazuh wazuh-manager
Type Values Removed Values Added
Description Wazuh versions from 3.9.0 before 4.14.8 contain an arbitrary file overwrite vulnerability in MasterHandler.process_files_from_worker allowing a cluster worker to overwrite protected master files. Attackers controlling a worker can use a trailing-slash basename bypass and missing extra_valid enforcement to overwrite ossec.conf and agent.conf, achieving root remote code execution across the manager and every agent.
Title Wazuh 3.9.0 before 4.14.8 Arbitrary File Overwrite RCE via process_files_from_worker
First Time appeared Wazuh
Wazuh wazuh
Weaknesses CWE-862
CPEs cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*
Vendors & Products Wazuh
Wazuh wazuh
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 26, 2026, 2:15 PM
Reserved
Aug 14, 2026, 2:06 PM
Status
Awaiting Analysis
Published
Oct 13, 2026, 2:17 PM
Modified
Oct 16, 2026, 10:17 PM