ZeroHour

CVE-2026-54085

large

Argument Injection in Wazuh Active Response Scripts Lets Attackers Alter Root Commands

CVSS 3.1
7.1 high
EPSS
<1%p14
Published
()
Modified
AI analysis

Wazuh versions 4.2.0 through 4.14.6 contain an argument injection flaw (CWE-88) in multiple active response scripts that pass attacker-influenced alert fields to privileged system commands without validating their format. An attacker who can inject crafted log events, for example via syslog, can supply malicious srcip or dstuser values that, when an active response rule fires, are passed unvalidated to root-run tools such as pfctl, npfctl, ipfw, route, netsh, and passwd. This allows the attacker to inject additional command arguments; on Windows, the unquoted CreateProcess command-line concatenation in wpopenv() lets a srcip containing spaces append further arguments, and the disable-account.c script can be abused to lock arbitrary system accounts. Any Wazuh deployment running an affected version where attackers can influence ingested log data and where the affected active response scripts are configured is exposed, with impact concentrated on integrity (high) and availability (low) per the CVSS 7.1 score. No public proof-of-concept or known in-the-wild exploitation exists, and EPSS estimates only a 0.2% probability of exploitation within 30 days.

What to do: Upgrade to Wazuh 4.14.7, which contains the fix. Organizations that cannot upgrade promptly should restrict log sources that can deliver attacker-controlled srcip/dstuser values (especially internet-exposed syslog) and review or temporarily disable active response configurations that invoke the route-null, netsh, pf, npf, ipfw, or disable-account scripts, checking for untrusted events that could trigger injected command arguments or account lockouts.

Affected
Wazuh (open-source XDR/SIEM platform, active response scripts)4.2.0 through 4.14.6 (fixed in 4.14.7)
Estimated exposure
large~100,000 deployments (order-of-magnitude estimate; Wazuh is a widely adopted open-source SIEM/XDR and the affected range spans essentially the whole 4.x line) — Based on Wazuh's position as one of the most widely deployed open-source security platforms (millions of documented downloads and a very large community install base), with the vulnerable range covering nearly all 4.x releases; practical…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Wazuh is an open-source security platform providing unified XDR and SIEM protection for endpoints and cloud workloads. In versions 4.2.0 through 4.14.6, multiple active response scripts pass attacker-influenced alert fields to privileged system commands without validating their format, allowing argument injection into tools that run as root. Five of the eight scripts that handle the srcip field, route-null.c, netsh.c, pf.c, npf.c, and ipfw.c, omit the get_ip_version() check that rejects non-IP input, and disable-account.c passes the dstuser field to passwd/chuser with only a comparison against "root". An attacker who can inject crafted log events, for example via syslog, can supply srcip or dstuser values that, when an active response rule triggers, are passed unvalidated to firewall and account-management commands such as pfctl, npfctl, ipfw, route, netsh, and passwd. This enables injecting additional command arguments, and on Windows the unquoted CreateProcess command-line concatenation in wpopenv() lets a srcip containing spaces add further arguments, while disable-account.c can be abused to lock arbitrary system accounts. This issue is fixed in version 4.14.7.

Vendors
wazuh
Products
wazuh
Weakness
CWE-88
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L

In the news

No ingested article mentions this CVE yet.