Configuration validation bypass enables root command execution in Wazuh wazuh-manager

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-74041?

CVE-2026-74041 is a vulnerability classified as Improper Handling of Case Sensitivity, affecting wazuh-manager (affected versions: 4.14.3 – < 4.14.8). This vulnerability is rated Critical, with a CVSS score of 9.4. Public exploit code or evidence is available for this vulnerability, but that does not confirm exploitation in the wild.

Overview

Original source data

Wazuh 4.14.3 before 4.14.8 contains a case-sensitivity mismatch between the ossec.conf validator and wazuh-logcollector that bypasses remote-command validation. Authenticated users with manager:update_config can inject an uppercase LOG_FORMAT command localfile that the collector runs as root on reload.

Affected products and scope

  • wazuh-manager is affected from 4.14.3 through releases less than 4.14.8, equivalent to >= 4.14.3, < 4.14.8.
  • Wazuh identifies 4.14.8 as patched for this issue. The status of parallel branches or later releases should not be inferred without separate evidence for each branch.
  • The normalized record marks the product default_status as unaffected, but that metadata does not override the explicit version-specific affected range above.

Technical details

The validator and executor for Wazuh both read ossec.conf but handle XML element names differently. The Python validator treats the log_format element name case-sensitively, while wazuh-logcollector matches the element name case-insensitively. As a result, an uppercase LOG_FORMAT element can be missed by the validator's remote-command check while still being processed as log_format by the collector. When the value matches the full_command form, a command-bearing localfile can pass validation even when remote_commands.localfile.allow: no is enabled. An authenticated user with manager:update_config can submit the configuration through REST PUT /manager/configuration; this path does not require a cluster key, and the cluster/DAPI path uses the same configuration update flow. When the configuration is reloaded or the manager is restarted, wazuh-logcollector rereads the configuration and executes the command with root privileges on the manager host. The available evidence confirms these manager paths but does not identify additional deployments or product branches beyond the stated scope.

Exploitability

The flaw is reachable over the network through the manager REST API or the cluster/DAPI path. Exploitation requires an authenticated account with manager:update_config; no additional user interaction is required after the configuration is accepted. The normalized record describes low attack complexity, and the Wazuh advisory describes PoCs for both the REST and cluster paths. The record also identifies a public exploit or PoC, but it does not establish active exploitation or use in a ransomware campaign. No unauthenticated exploitation path is documented.

Technical impact

Successful exploitation allows a caller-supplied command to run as root on the Wazuh manager host. Because the API service runs as a non-root account, the flaw can escalate an authorized configuration account to root on the host. Technical consequences may include loss of confidentiality, integrity, and availability for the manager and data accessible from it. Impact to connected systems is possible, but the available evidence does not confirm lateral movement or any particular downstream target.

Business impact

An account intended to update manager configuration can cross a privilege boundary and run commands as root on the Wazuh manager host. This could enable unauthorized monitoring configuration changes, service disruption, loss or alteration of telemetry, and access to files or secrets readable by root. Control of the manager could also be weakened if an attacker changes components or configuration used for monitoring. The available evidence does not identify a specific compromise, victim, or organization.

Remediation

  1. Upgrade wazuh-manager to 4.14.8, the release identified by the Wazuh advisory as fixing the issue. Do not interpret this as verification that every later release branch is covered.
  2. Until upgrading, tightly restrict accounts and roles with manager:update_config, and review access to manager:restart. This reduces the reachable attack surface but is not a substitute for patching.
  3. Keep remote_commands.localfile.allow: no enabled, but do not treat it as a complete fix because the flaw bypasses this check. Review and remove unapproved command-bearing localfile entries and case-variant element names.
  4. If an affected manager may have been exploited, handle the host as potentially subject to root-level command execution: isolate it according to incident-response procedures, inspect for unauthorized configuration and command changes, and assess secrets that may have been accessible. The record provides no complete workaround beyond upgrading and reducing access.

Detection

  • Inventory deployed wazuh-manager versions and compare them with the affected and fixed boundaries in the remediation field.
  • Identify accounts, roles, and tokens with manager:update_config; also review manager:restart, which may allow an actor to complete the upload and reload sequence.
  • Inspect ossec.conf and uploaded configurations for unusual case variants of log_format, especially LOG_FORMAT, combined with localfile elements containing command.
  • Review telemetry for PUT /manager/configuration, cluster/DAPI configuration updates, and reload or restart activity near configuration changes. This is precautionary monitoring, not a confirmed indicator of compromise.
  • Compare the current configuration with a trusted baseline and investigate unapproved commands or manager changes. The absence of matching logs or configuration anomalies does not by itself prove that the system is safe.
Sources (8)
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.