Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid Wazuh agent keys or compromise enrolled endpoint
-
DeliveryConnect to Wazuh manager TCP port 1514
-
ExploitSend encrypted message with payload crafted to decompress to 65535 bytes
-
Executionos_zlib_uncompress() writes null byte past stack buffer boundary
-
PersistStack corruption crashes root-level remoted daemon
-
ImpactAgent telemetry severed across deployment
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer size calculation
|
| Exploitation Conditions | Exploitation requires the attacker to possess valid Wazuh agent credentials (agent key material) or to have compromised a host that is already enrolled as a Wazuh agent - this is the PR:L prerequisite confirmed by the CVSS vector. The crafted compressed payload must decompress to exactly OS_MAXSTR (65,535) bytes to write the null terminator precisely at the stack boundary; decompressed sizes below this threshold are safe, and sizes above it (now blocked by the length guard in the patched version) do not trigger the same boundary condition. The attack path is the standard TCP agent communication channel on port 1514, which is a default and required component of any Wazuh deployment with enrolled agents - no non-default configuration is required on the manager side. Exploitation is limited by: (1) the authentication prerequisite (agent key possession, not arbitrary network access), (2) the precision constraint on decompressed payload size (AC:H), and (3) the impact ceiling of daemon crash and restart rather than code execution, as the write is a single null byte at a stack position rather than an arbitrary overwrite primitive. |
| Impact | The CVSS 5.3 (Medium) score accurately reflects a network-reachable but access-controlled, precision-constrained denial-of-service. The PR:L metric confirms that exploitation requires agent-level authentication - an attacker must possess valid Wazuh agent keys or have compromised a legitimately enrolled endpoint before any exploitation attempt. The AC:H metric reflects the engineering constraint that the compressed payload must decompress to exactly 65,535 bytes to land the null byte at the exact boundary; this is non-trivial to craft reliably. The A:H impact is genuine: crashing the root-level remoted daemon halts all agent message processing across the entire Wazuh deployment, which is operationally severe for any security team relying on continuous telemetry. Even a mid-sized security operations center in bytom running Wazuh as its primary SIEM-XDR platform would experience a significant monitoring gap during daemon recovery time. No EPSS score was provided in the supplied intelligence, limiting probabilistic exploitation forecasting. The vulnerability is not in the CISA KEV catalog and no public proof-of-concept has been identified, placing overall exploitation urgency at lower-than-critical priority, though organizations with enrolled agents on untrusted or semi-trusted endpoints should treat patching as time-sensitive given the potential for insider or post-compromise lateral disruption. |
| Exploit ScenarioDerived | An attacker who has compromised a Wazuh-enrolled endpoint (or obtained agent authentication keys through credential theft) connects to the Wazuh manager on TCP port 1514 and sends an encrypted agent message whose compressed body is crafted to decompress to exactly 65,535 bytes. The os_zlib_uncompress() call in ReadSecMSG() writes the null terminator one byte past the stack buffer boundary in the root-level remoted daemon, corrupting the stack and crashing message processing - severing agent telemetry across the entire Wazuh deployment until the daemon is restarted. No public proof-of-concept exploit code has been identified at time of analysis, but the triggering condition is mechanically straightforward for an attacker with agent access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 19, 2026
Stack out-of-bounds write in Wazuh's root-level remoted daemon allows an authenticated agent to crash manager message processing by sending a specially crafted compressed payload over TCP port 1514. Versions 1.0.0 through 4.14.5 (stable) and 5.0.0-beta1 are affected; the decompression function writes a null terminator one byte beyond the stack buffer boundary when the message expands to exactly OS_MAXSTR bytes, corrupting the daemon stack and disrupting all agent communications. No public exploit has been identified at time of analysis, and the vulnerability is not listed in the CISA KEV catalog; fixed versions 4.14.6 and 5.0.0-beta2 are available.
RemediationAI
The primary remediation is to upgrade Wazuh to version 4.14.6 (stable) or 5.0.0-beta2 (beta), both available at the official GitHub releases page (https://github.com/wazuh/wazuh/releases/tag/v4.14.6 and https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta2). The upstream fix in commit 96772487fbdecd43cc83e284ee7aeb45e3cfcd96 (PR #35773) eliminates the off-by-one by introducing a correctly sized thread-local decompression buffer and adding an explicit length guard that rejects oversized messages before decompression. If immediate patching is not feasible, operators should restrict inbound access to TCP port 1514 on the Wazuh manager via firewall or host-based rules to only the specific IP addresses of enrolled agents - this reduces the attack surface to enrolled agents already trusted by the deployment but does not protect against a compromised enrolled endpoint. Disabling zlib-compressed agent messaging is not a viable workaround without breaking all agent communications. Note that the firewall mitigation adds network rule management overhead and may interfere with dynamic agent enrollment workflows.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in Wazuh's remoted daemon, which handles encrypted agent-to-manager communications over TCP port 1514. The root cause (CWE-131: Incorrect Calculation of Buffer Size) is that HandleSecureMessage() in src/remoted/secure.c passed a pointer into a stack-allocated cleartext buffer as the destination operand to os_zlib_uncompress() inside ReadSecMSG() in src/os_crypto/shared/msgs.c. The decompression function writes up to OS_MAXSTR bytes at that pointer offset without reserving space for the null terminator that zlib appends. When a crafted compressed message expands to exactly OS_MAXSTR (65,535) bytes, the null terminator is written one byte past the stack buffer boundary, corrupting the stack frame of the root-privileged remoted daemon. The fix introduced a thread-local static buffer declared as decompress_buffer[OS_MAXSTR + 1] sized to accommodate the terminator, redirected os_zlib_uncompress() to write into that dedicated buffer rather than the stack-aliased pointer, and added an upfront length guard in HandleSecureMessage() that closes the connection socket and returns early when msg_length exceeds OS_MAXSTR, as confirmed by commit 96772487fbdecd43cc83e284ee7aeb45e3cfcd96 and PR #35773.
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:L/UI:N/S:U/C:N/I:N/A:H
Network-reachable via TCP 1514 (AV:N), requires agent credentials (PR:L), payload must decompress to exact boundary size (AC:H), crashes daemon (A:H) with no confidentiality or integrity impact.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
1DescriptionCVE.org
Wazuh is a free and open source platform used for threat prevention, detection, and response. From 1.0.0 until 4.14.6 and 5.0.0-beta2, HandleSecureMessage() in src/remoted/secure.c passes a pointer inside its stack buffer to ReadSecMSG(), and src/os_crypto/shared/msgs.c decompresses up to OS_MAXSTR bytes at that offset. For an encrypted agent message on TCP port 1514 that expands to 65,536 bytes, os_zlib_uncompress() writes a terminating null byte beyond the end of the destination buffer. The resulting stack out-of-bounds write in the root-level remoted daemon can crash message processing and disrupt agent communications. This issue is fixed in versions 4.14.6 and 5.0.0-beta2.
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 buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
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
EUVD-2026-62554
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB