ZeroHour

CVE-2026-54084

PoC large

NULL Pointer Dereference in Wazuh Agent Enrollment Crashes Agents (4.0.0–4.14.6)

CVSS 3.1
5.3 medium
EPSS
<1%p2
Published
()
Modified
AI analysis

Wazuh agents in versions 4.0.0 through 4.14.6 can be crashed during enrollment when a malicious or man-in-the-middle manager returns a malformed key response containing fewer than the expected four space-separated fields. The w_enrollment_process_agent_key() routine does not validate that all fields exist before passing them to OS_IsValidName(), which calls strlen() on a NULL argument, causing a deterministic denial of service against the agent process. The attack is feasible when agents enroll without a CA certificate configured to verify the manager, allowing a rogue manager or network-level attacker to repeatedly kill agents. Affected parties are organizations running Wazuh agents in the vulnerable range with unverified enrollment channels; confidentiality and integrity are not impacted. Exploitation status is limited to a public technical advisory with a reproducible trigger (no observed in-the-wild abuse, EPSS 0.1%, not in CISA KEV), and the issue is fixed in version 4.14.7.

What to do: Upgrade all Wazuh agents and managers to version 4.14.7 or later, which adds validation of the enrollment key fields. As a hardening measure, configure agent enrollment to verify the manager via CA certificate so agents cannot be pointed at a rogue or spoofed manager. Additionally, restrict enrollment/service ports (e.g., TCP 1514) to trusted networks and monitor for unexpected agent process crashes or repeated re-enrollment attempts.

Affected
Wazuh4.0.0 through 4.14.6 (fixed in 4.14.7)
Estimated exposure
large≈100,000–1,000,000 deployments (plausibly millions of agents; only unverified-enrollment agents exposed) — Wazuh reports a very large self-hosted user base (100k+ enterprise users and millions of downloaded/active agents), but the exploitable subset is limited to agents that enroll without manager CA verification, which cuts the practically…

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.0.0 through 4.14.6, a malicious or man-in-the-middle enrollment manager can crash a Wazuh agent during enrollment by returning a malformed key response with fewer than four fields, causing a NULL pointer dereference. The w_enrollment_process_agent_key() routine splits the manager-provided key into four space-separated fields but does not verify that all fields are present before passing them to validators. Because OS_StrBreak() leaves missing trailing entries as NULL and OS_IsValidName() calls strlen() on its argument without a NULL check, a response such as OSSEC K:'1' reaches OS_IsValidName(NULL) and terminates the agent process. Since Wazuh permits enrollment against an unverified manager when no CA certificate is configured, an attacker operating a rogue manager or intercepting the enrollment flow can deterministically crash agents, resulting in denial of service. This issue is fixed in version 4.14.7.

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

In the news

No ingested article mentions this CVE yet.