---
id: CVE-2026-74040
title: >-
  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
summary: >-
  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 …
severity: critical
cvss: 9.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-862
published: '2026-10-13'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T14:17:40.720'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-74040'
references:
  - url: 'https://github.com/wazuh/wazuh/releases/tag/v4.14.8'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/wazuh/wazuh/security/advisories/GHSA-88p6-7cm8-xwj8'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/wazuh-3.9.0-before-4.14.8-arbitrary-file-overwrite-rce-via-process-files-from-worker
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-13T14:29:01.862Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
