Skip to main content
Vulnerability Database/CVE-2026-74034

CVE-2026-74034: Wazuh Privilege Escalation Vulnerability

CVE-2026-74034 is a privilege escalation vulnerability in Wazuh affecting versions 4.1.0 to 4.14.7. Attackers can exploit missing origin checks to read sensitive files as root. This article covers technical details, affected versions, impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-74034 Overview

CVE-2026-74034 is a missing authorization vulnerability in Wazuh, an open-source security monitoring platform. The flaw affects wm_agent_upgrade in versions from 4.1.0 before 4.14.8. The module fails to verify the origin of upgrade_custom commands received over the agent channel. An enrolled agent can send a crafted upgrade_custom message containing an attacker-controlled file_path, causing the Wazuh manager to read arbitrary files as root. Attackers use this behavior to exfiltrate sensitive files, including /etc/shadow and client.keys, which hold agent authentication secrets. The weakness is tracked as CWE-862: Missing Authorization.

Critical Impact

Any enrolled Wazuh agent can read arbitrary files on the Wazuh manager as root, exposing /etc/shadow, agent keys, and other sensitive data.

Affected Products

  • Wazuh 4.1.0 through 4.14.7
  • Wazuh manager component (wm_agent_upgrade module)
  • Deployments using agent enrollment with the upgrade subsystem enabled

Discovery Timeline

  • 2026-10-13 - CVE-2026-74034 published to NVD
  • 2026-10-15 - Last updated in NVD database
  • Wazuh 4.14.8 - Fixed release published on GitHub (v4.14.8 release notes)

Technical Details for CVE-2026-74034

Vulnerability Analysis

The Wazuh manager runs wm_agent_upgrade, a module that processes upgrade requests from the Wazuh API and distributes upgrade packages to enrolled agents. The module also accepts upgrade_custom messages, which instruct the manager to deliver a custom upgrade package located at a specified file_path. The handler trusts the origin of these messages without validating whether they came from an authorized API caller or from an agent socket. Because enrolled agents share a trust channel with the manager, a malicious or compromised agent can submit upgrade_custom requests directly. The manager then opens the requested path with root privileges and returns the file contents through the upgrade response flow, converting an upgrade primitive into an arbitrary file read.

Root Cause

The root cause is a missing origin check [CWE-862] inside the wm_agent_upgrade message dispatcher. The code path that handles upgrade_custom does not distinguish between commands arriving from the privileged local API socket and commands arriving over the agent communication channel. Combined with the manager process running as root, this authorization gap turns a legitimate administrative feature into a file disclosure primitive.

Attack Vector

Exploitation requires an attacker to control an enrolled agent, either by registering a new agent or by compromising an existing one. The attacker sends an upgrade_custom message over the agent channel with file_path set to a target such as /etc/shadow or /var/ossec/etc/client.keys. The manager reads the file as root and the response surfaces the contents back to the attacker. Disclosure of client.keys enables impersonation of other agents and lateral access across the monitored estate. See the GitHub Security Advisory GHSA-r7hm-43xr-477j and the VulnCheck advisory for additional context.

Detection Methods for CVE-2026-74034

Indicators of Compromise

  • Unexpected upgrade_custom entries in ossec.log or wazuh-modulesd logs that reference non-package paths such as /etc/shadow, /etc/passwd, or client.keys.
  • Agent-originated upgrade commands occurring without a matching Wazuh API call in audit logs.
  • Spikes in upgrade activity from agents that have no legitimate upgrade workflow assigned.

Detection Strategies

  • Correlate wm_agent_upgrade command events with Wazuh API access logs; flag upgrade_custom operations with no corresponding API request.
  • Alert on file_path values in upgrade messages that fall outside the expected /var/ossec/var/upgrade/ directory.
  • Monitor manager host file-access telemetry for root reads of /etc/shadow or client.keys initiated by wazuh-modulesd.

Monitoring Recommendations

  • Forward Wazuh manager logs to a central SIEM and build detections keyed on anomalous upgrade_custom traffic.
  • Track agent registration churn and alert when newly enrolled agents issue upgrade commands shortly after enrollment.
  • Review integrity-monitoring events for client.keys to catch unauthorized reads and subsequent agent impersonation.

How to Mitigate CVE-2026-74034

Immediate Actions Required

  • Upgrade all Wazuh manager nodes to version 4.14.8 or later using the official v4.14.8 release.
  • Rotate client.keys and re-enroll agents if there is any suspicion that the key material was exposed before patching.
  • Audit the manager host for root reads of sensitive files that originated from wazuh-modulesd prior to the upgrade.

Patch Information

Wazuh resolved the issue in release 4.14.8 by enforcing an origin check in wm_agent_upgrade so that upgrade_custom commands are only honored when received from the trusted API socket. Operators should apply the vendor update across all manager nodes in a cluster. Details are documented in GitHub Security Advisory GHSA-r7hm-43xr-477j.

Workarounds

  • Restrict agent enrollment with authd pre-shared keys and network allow-lists to limit who can introduce a malicious agent.
  • Place the Wazuh manager behind strict network segmentation so only approved agent subnets can reach the agent port (default 1514).
  • Monitor and alert on any upgrade_custom command activity until the 4.14.8 upgrade is completed across the fleet.
bash
# Verify the installed Wazuh manager version and upgrade if below 4.14.8
/var/ossec/bin/wazuh-control info | grep WAZUH_VERSION

# Debian/Ubuntu
apt-get update && apt-get install --only-upgrade wazuh-manager=4.14.8-1

# RHEL/CentOS
yum update wazuh-manager-4.14.8-1

# Restart the manager after upgrade
systemctl restart wazuh-manager

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.