---
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
vendor: Wazuh
product: wazuh-manager
affected:
  - wazuh-manager >= 3.9.0 < 4.14.8
published: '2026-10-13'
updated: '2026-10-16'
sourceUpdated: '2026-10-16T22:17:55.680'
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
  - url: 'https://github.com/wazuh/wazuh/security/advisories/GHSA-88p6-7cm8-xwj8'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.00716
epssPercentile: 0.53892
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-10-16T21:53:07.447925Z'
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.
