Wazuh wazuh-agent SCA policy trust bypass enables root remote code execution

Note: This data is for reference and cybersecurity research purposes only.CyStack advises users not to use this information for unlawful purposes.

What is CVE-2026-74036?

CVE-2026-74036 is a vulnerability classified as Incorrect Authorization, affecting wazuh-agent (affected versions: 4.3.0 – < 4.14.8). This vulnerability is rated High, with a CVSS score of 8.6. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

Wazuh from 4.3.0 before 4.14.8 contains a remote code execution vulnerability where SCA policy trust is determined by file path rather than configuration source. Attackers controlling a manager can write unsigned policy files to var/incoming via the upgrade channel and reference them to execute command checks as root on agents.

Affected products and scope

  • wazuh-agent is affected in the range >= 4.3.0, < 4.14.8.
  • The Wazuh advisory identifies 4.14.8 as the patched release.
  • The status of parallel branches or releases after 4.14.8 was not independently established by the reviewed evidence; do not infer their status solely from the existence of the 4.14.8 patch.

Technical details

The flaw is in how the SCA subsystem classifies a policy as remote or local. The sca.remote_commands setting is disabled by default and blocks command checks only when the policy is marked remote, but that classification is based primarily on whether the file path contains etc/shared/ rather than on the policy's configuration source. A controlled manager can place an unsigned policy file in var/incoming through the agent upgrade channel and reference it from shared configuration; because the file is outside etc/shared/, the agent can classify the policy as local and trusted. Command checks using the c:<command> form can then run with root privileges on the agent. The upgrade channel writes the file before signature verification associated with an actual upgrade, and wazuh-modulesd runs as root. The exact command and post-execution consequences depend on the policy content and the agent environment.

Exploitability

Exploitation requires control of a Wazuh manager or the corresponding configuration and upgrade paths that can affect an agent. The attack path uses the manager-to-agent channel, requires no user interaction, and is described as low complexity in the record. The Wazuh advisory publishes a proof of concept that writes a policy to var/incoming, references it from shared configuration, and runs a command check as root. The supplied record does not establish exploitation in the wild, a named victim, or a ransomware campaign.

Technical impact

The flaw allows SCA command checks to execute on an agent with root privileges instead of being blocked while sca.remote_commands is disabled. The technical result is arbitrary code execution within the affected agent, with potential impact to its data, configuration, processes, and availability. Because the manager can distribute shared configuration to multiple agents, organisational impact may extend across the fleet. A key limitation is that the attacker must control the manager or the relevant administrative path; the record does not describe impact beyond agents receiving that configuration.

Business impact

If a Wazuh manager is controlled, an attacker can bypass the protection intended to prevent the manager from running arbitrary shell commands on agents. Consequences may include loss of confidentiality, integrity, and availability on agents managed by that manager because commands run with root privileges. The affected scope may extend across the fleet receiving shared configuration from the controlled manager. The flaw does not by itself establish that an external attacker obtained manager access; control of the manager is a precondition for the described attack path.

Remediation

  1. Upgrade wazuh-agent to the confirmed patched release 4.14.8.
  2. If an upgrade is not immediately possible, the reviewed sources do not specify a confirmed temporary workaround. As a precaution, restrict manager administration, shared-configuration changes, and upgrade-channel access, but do not treat these measures as a fix.
  3. After upgrading or restoring the manager, review policy references outside etc/shared/, unexpected files in var/incoming, and SCA command checks for potentially unauthorized changes.
  4. If the manager or an agent may have been controlled, preserve evidence and follow the organization's incident-response process; changing sca.remote_commands alone does not correct the path-based classification flaw.

Detection

  1. Inventory wazuh-agent versions across the environment and flag releases from 4.3.0 through versions before 4.14.8 for remediation.
  2. Review shared configuration and <policy> elements for references to files outside etc/shared/, especially paths under var/incoming.
  3. Inspect var/incoming on agents for unexpected SCA policy files delivered through the upgrade channel.
  4. Identify SCA policies containing c:<command> checks and compare them with approved deployment sources.
  5. Verify sca.remote_commands, but do not treat a disabled value as proof of safety when policy classification can be bypassed through the file path.
  6. Where process telemetry is available, review commands executed by Wazuh processes around the time an agent reapplies shared configuration. The consulted sources do not provide a specific IOC or log signature.
Sources (10)
Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.