Wazuh
CVE-2026-54084
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Wazuh agent in enrollment phase
-
DeliveryPosition as rogue manager or intercept enrollment traffic via MITM
-
ExploitReceive agent enrollment request
-
ExecutionReturn malformed key response with fewer than four fields
-
PersistTrigger NULL pointer dereference in OS_IsValidName()
-
ImpactAgent process crashes, security telemetry silenced
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Two conditions must be met simultaneously. First, the target Wazuh agent must be in the enrollment phase - this occurs at initial deployment, after a key reset, or following agent restart without a cached key. The enrollment window is time-limited and agent-specific, meaning an attacker must time their response or trigger a re-enrollment. Second, no CA certificate must be configured for manager verification on the affected agent, which allows it to accept enrollment responses from any reachable server without cryptographic validation. If a CA certificate IS configured and enforced, the agent will reject connections from unauthorized managers, blocking the attack entirely. The attacker must also be positioned to deliver the malformed response before the legitimate manager responds (MITM scenario) or must be the server the agent is configured to contact (rogue manager scenario). The impact is strictly denial of service - the agent process terminates; there is no code execution, credential exposure, or lateral movement capability inherent in this flaw. |
| Impact | The CVSS 5.3 (Medium) rating appropriately reflects the constrained attack surface: AV:N establishes a network-reachable entry point, but AC:H captures the prerequisite of either a MITM position during the enrollment handshake or a rogue manager that the agent will connect to without certificate verification. The availability impact is rated High (A:H) because the crash is deterministic - any correctly formed malformed response will reliably terminate the agent - but the scope is unchanged and there is no confidentiality or integrity exposure. No EPSS score was included in the provided intelligence, and the vulnerability is not listed in the CISA KEV catalog, meaning active exploitation in the wild is unconfirmed. However, the crash mechanism is simple enough that the barrier to exploit is effectively the AC:H preconditions rather than any technical sophistication; once an attacker controls the enrollment channel, exploitation is trivial. Organizations that deploy Wazuh agents in environments without strict CA certificate requirements - a common pattern in rapid-deployment or lab contexts - face higher realistic risk than the raw CVSS score suggests, and should prioritize patching to 4.14.7 over relying on CVSS triage alone. The targeted nature of the DoS (individual agent crash, not manager-side) limits blast radius, but silently disabled agents directly undermine the security visibility Wazuh is deployed to provide. |
| Exploit ScenarioDerived | An attacker with a MITM position on the network segment used for agent-manager enrollment (achieved via ARP spoofing, DNS poisoning, or rogue DHCP) intercepts an agent's enrollment request and responds with a truncated key message such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 28, 2026
NULL pointer dereference in Wazuh agent enrollment (versions 4.0.0-4.14.6) allows a network-positioned attacker operating a rogue manager or performing a man-in-the-middle attack to deterministically crash the agent process by supplying a malformed key response containing fewer than four space-separated fields. The flaw resides in w_enrollment_process_agent_key() in src/shared/enrollment_op.c, which passes unvalidated NULL entries from OS_StrBreak() directly into OS_IsValidName(), where an unguarded strlen() call on a NULL pointer terminates the agent. The attack is constrained by high complexity conditions (no CA certificate configured, or active MITM capability), and no public exploit code or CISA KEV listing has been identified at time of analysis. The issue is fixed in Wazuh 4.14.7.
RemediationAI
Upgrade Wazuh agents to version 4.14.7, which introduces explicit NULL checks for all four parsed enrollment key fields before invoking OS_IsValidID() and OS_IsValidName(), as confirmed by the upstream commit at https://github.com/wazuh/wazuh/commit/7dfbb4a292bc6ae8e3bb4c1982f687f35216a748. The fix is minimal and surgical, making the upgrade low-risk from a regression perspective. For environments that cannot immediately patch, configure a CA certificate for manager verification: this prevents agents from accepting enrollment responses from unverified or rogue managers, directly blocking the primary attack path described in the CVE. Be aware that enabling CA certificate verification requires distributing the certificate authority to all agents and managers; environments using self-signed certificates must ensure proper certificate distribution before enabling this control, or enrollment will fail. The vendor security advisory at https://github.com/wazuh/wazuh/security/advisories/GHSA-ppc7-hj9v-vx39 should be consulted for deployment-specific guidance.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Wazuh agents use an enrollment protocol in which the agent connects to a manager and receives a key response expected to contain exactly four space-separated fields: agent ID, agent name, agent IP, and a shared secret key. The vulnerable function w_enrollment_process_agent_key() in src/shared/enrollment_op.c invokes OS_StrBreak() to split this response into an array. When the server response is truncated - for example, OSSEC K:'1' - OS_StrBreak() returns an array with fewer than four populated entries, leaving trailing slots as NULL. Prior to the fix, the code passed all four array slots directly to OS_IsValidID() and OS_IsValidName() without first verifying their non-NULL status. Both validators call strlen() on their argument without a NULL guard, resulting in a NULL pointer dereference (CWE-476) that immediately terminates the agent process. The root cause is a missing precondition check on the parsed field count. The attack surface is gated by Wazuh's enrollment trust model: when no CA certificate is configured, the agent accepts connections from any responding manager, making unauthenticated rogue managers viable attack vectors.
Know when Wazuh gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H
AV:N because the attack traverses the network; AC:H because MITM positioning or absent CA configuration is required; UI:R because the agent must actively initiate enrollment; A:H because the agent process terminates deterministically.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Affected Products (CPE)CVE.org
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
In the wazuh-slack active response script in Wazuh 4.2.x before 4.2.5, untrusted user agents are passed to a curl comman
Path-traversal-driven root code execution affects the Wazuh security platform's cluster synchronization layer in version
Arbitrary file read in Wazuh cluster deployments (4.0.0 through 4.14.5, and 5.0.0-beta1/beta2) lets a peer node that alr
Arbitrary file write leading to root remote code execution affects Wazuh worker nodes in clustered deployments running v
A critical deserialization vulnerability in Wazuh's cluster mode allows attackers with access to any worker node to achi
Wazuh Agent before 4.13.0 on Windows can be made by an authenticated, high-privileged configuration writer to open attac
Remote code execution on the Wazuh cluster master node is achievable by any attacker who controls a cluster worker node,
Path traversal in Wazuh's ip-customblock active response script allows low-privileged remote attackers to create or dele
The agent in OSSEC through 3.1.0 on Windows allows local users to gain NT AUTHORITY\SYSTEM access via Directory Traversa
Cluster key disclosure in Wazuh Manager versions 4.0.0 through 4.14.4 enables a two-stage privilege escalation: a low-pr
Unauthenticated remote denial of service in the Wazuh cluster daemon (wazuh-clusterd) allows a network peer to exhaust p
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB