---
id: CVE-2026-74034
title: >-
  Wazuh from 4.1.0 before 4.14.8 contains a missing origin check in
  wm_agent_upgrade that allows enrolled agents to issue upgrade_custom commands
  with attacker-controlled file_path
summary: >-
  Wazuh from 4.1.0 before 4.14.8 contains a missing origin check in
  wm_agent_upgrade that allows enrolled agents to issue upgrade_custom commands
  with attacker-controlled file_path. Attackers can inject an upgrade_custom
  message over the a…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cwe:
  - CWE-862
published: '2026-10-13'
updated: '2026-10-13'
sourceUpdated: '2026-10-13T14:17:40.087'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-74034'
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-r7hm-43xr-477j'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/wazuh-4.1.0-before-4.14.8-arbitrary-file-read-via-upgrade-custom-command
    label: disclosure@vulncheck.com
tags:
  - nvd
ingestedAt: '2026-10-13T14:29:01.860Z'
---

## Overview

Wazuh from 4.1.0 before 4.14.8 contains a missing origin check in wm_agent_upgrade that allows enrolled agents to issue upgrade_custom commands with attacker-controlled file_path. Attackers can inject an upgrade_custom message over the agent channel to read arbitrary files as root, exfiltrating /etc/shadow and client.keys.

## Remediation

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