Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach Wazuh manager on TCP/1514
-
DeliverySend oversized length-prefix message
-
ExploitTrigger 'unexpected message (hex)' diagnostic path
-
ExecutionSign-extended 0xFF bytes overflow 2049-byte stack buffer
-
PersistCorrupt stack / exhaust log I/O
-
ImpactDegrade or crash remoted daemon
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must reach the Wazuh manager's agent communication port TCP/1514 and send a message whose length prefix exceeds OS_MAXSTR, which routes execution into the unauthenticated 'unexpected message (hex)' diagnostic path in nb_recv() (netbuffer.c) that calls print_hex_string() into a fixed 2049-byte stack buffer - this is reachable before any agent authentication/registration. To trigger the memory-corruption overflow specifically, the input must contain high bytes (>= 0x80, e.g. 0xFF) AND the daemon must be a build where char is signed and sign-extended before the variadic sprintf call (per the GHSA, the default on x86_64 / -fsigned-char); on platforms where char is unsigned the overflow does not occur. LIMITING FACTORS: the signed-char build dependency constrains memory corruption, and the reporter did not demonstrate a reliable crash or RCE in the shipping binary. The log-amplification denial-of-service variant has NO such limits - it needs only repeated oversized messages with bytes < 0x80 from an unauthenticated TCP client, as Wazuh's documented anti-flooding controls apply to agent event throughput, not raw TCP clients on this warning path. |
| Impact | Signals conflict in an informative way. The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, score 8.2) and the SSVC framework (Exploitation: poc, Automatable: yes, Technical Impact: partial) both describe a remotely reachable, pre-authentication flaw that is easy to trigger and scriptable - a genuinely attractive target profile for a network-exposed security daemon. Against that, EPSS is only 0.06% (18th percentile) and the CVE is NOT on CISA KEV, indicating no observed widespread exploitation. The vuln.today decision label is 'this_week' rather than act_now/emergency. Crucially, the GHSA author explicitly states what is and is NOT proven: a deterministic out-of-bounds stack write is confirmed via AddressSanitizer and the sign-extension (movsbl) behavior is confirmed in the shipping x86_64 binary, but 'reliable crash or control-flow hijack in the shipping build' is NOT demonstrated. So the CVSS A:H and the realistic near-term risk rest primarily on the availability/DoS and log-amplification paths rather than proven remote code execution. Net: this is a real, prioritize-this-week issue for internet- or network-exposed Wazuh managers because the diagnostic path is unauthenticated, automatable, and trivially reachable on TCP/1514 - but the low EPSS and absence of KEV suggest it is not yet seeing mass exploitation, and the headline RCE potential is unverified. Note also the condition dependency: the memory-corruption overflow requires a signed-char/sign-extending build (default on x86_64), so impact may differ on platforms where char is unsigned, while the log-amplification DoS is build-independent. |
| Exploit ScenarioDerived | An unauthenticated attacker with network reach to the Wazuh manager's agent port (TCP/1514) sends a message with a length prefix exceeding OS_MAXSTR containing bytes such as 0xFF, driving the 'unexpected message (hex)' diagnostic path through print_hex_string() and writing past the fixed 2049-byte stack buffer on signed-char builds. The GHSA provides proof-of-concept material (an ASan proof, binary disassembly showing sign-extension, and network/DoS trigger scripts); a deterministic out-of-bounds write is confirmed, though a reliable crash or code-execution in the shipping build is not demonstrated. Even without the overflow, the attacker can repeatedly hit the same path with bytes < 0x80 to flood /var/ossec/logs/ossec.log for resource-exhaustion and alert-noise denial of service. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Nov 11, 2026
Wazuh manager releases 4.8.0 through 4.14.3 contain a stack-based buffer overflow in print_hex_string() inside wazuh-remoted that unauthenticated remote clients can reach over TCP/1514, prior to any agent authentication or registration, by sending a message whose length prefix exceeds OS_MAXSTR and forces the 'unexpected message (hex)' diagnostic path. On builds where char is signed and the compiler sign-extends the byte before the variadic sprintf("%.2x") call, bytes such as 0xFF format as eight characters instead of two and write past a fixed 2049-byte stack buffer; a public proof-of-concept exists in the advisory (deterministic AddressSanitizer stack-buffer-overflow plus a network trigger script) and the shipping binary's sign extension was confirmed by disassembly, though the reporter did not demonstrate a reliable crash or control-flow hijack in the production build. The same pre-auth path independently logs an attacker-controlled hex dump to /var/ossec/logs/ossec.log on every trigger, and this log amplification needs only bytes below 0x80, so it works even where the overflow does not. EPSS is low at 0.06% (18th percentile) and CISA SSVC records exploitation as PoC-level with partial technical impact; the vendor fix is version 4.14.4.
Earlier versions of this analysis (1)
Stack-based buffer overflow in wazuh-remoted's print_hex_string() function exposes Wazuh 4.8.0 through 4.14.3 to unauthenticated remote exploitation via TCP/1514, reachable before any agent authentication logic executes. The overflow stems from a C signed-char sign-extension defect where bytes ≥ 0x80 are rendered as 8-character hex strings instead of 2, overflowing a fixed 2049-byte stack buffer; a secondary unauthenticated path independently enables remote log amplification capable of exhausting disk and I/O on the monitoring host. No public exploit has been confirmed as actively exploited (not in CISA KEV), though SSVC assesses a proof-of-concept exists and the attack is automatable at scale.
RemediationAI
Vendor-released patch: Wazuh 4.14.4, which incorporates PR #34602 ('Changed to unsigned char in print_hex_string') together with the manager's other buffer-underflow fixes, so no version between 4.8.0 and 4.14.3 should be considered corrected. Upgrade managers to 4.14.4 from the release page at https://github.com/wazuh/wazuh/releases/tag/v4.14.4 and re-verify the deployed wazuh-remoted binary. Where upgrading cannot happen immediately, the most direct control is to restrict inbound TCP/1514 on the manager to known agent networks at the network or firewall layer, since the vulnerable diagnostic path is reachable only from that agent-communication port and requires no credentials - the trade-off is that agents and enrollment from other address ranges are blocked until the rules change. For the log-amplification variant, monitor /var/ossec/logs/ossec.log for repeated 'Unexpected message (hex)' entries and keep the internal rotation controls (monitord.rotate_log, monitord.size_rotate, monitord.daily_rotations, monitord.keep_log_days) configured to bound disk consumption; note the advisory states there is no documented ingress rate limit for this specific warning path, so rotation only limits the damage rather than preventing it. No vendor workaround other than updating is described for the memory-corruption case, and the reporter explicitly did not demonstrate a reliable crash or control-flow hijack in the shipping binary, so urgency is driven by the pre-auth reachability and the documented log-amplification denial of service rather than by confirmed remote code execution.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-121 (stack-based buffer overflow) arising from a variadic-argument promotion bug. In src/shared/src/string_op.c, print_hex_string() loops while i < (dst_size-1)/2 and i < src_size, calling sprintf(dst_buf + 2*i, "%.2x", src_buf[i]). Because sprintf is variadic and the source buffer is plain char, each byte is promoted to int; on platforms where char is signed (the default on x86_64, and reproducible with -fsigned-char), a byte of 0xFF is promoted to -1 and printed as "ffffffff" - eight bytes instead of the two the pointer arithmetic reserves per iteration. With a 1024-iteration loop bound derived from the 2049-byte destination, the worst case writes roughly 8192 bytes into a 2049-byte stack buffer. The triggering caller is in src/remoted/src/netbuffer.c inside nb_recv(): when the parsed message length exceeds OS_MAXSTR, the daemon declares char hex[OS_SIZE_2048 + 1], calls print_hex_string(), logs "Unexpected message (hex): '%s'" and closes the connection - all before any credential check. A secondary CWE-400 (uncontrolled resource consumption) issue rides on the same code path: the hex dump is written to /var/ossec/logs/ossec.log for each oversized message, and because Wazuh's documented anti-flooding controls govern agent event throughput rather than raw TCP clients, unauthenticated senders can drive repeated log writes. The GHSA confirms both weaknesses against the same vulnerable 4.14.3 source.
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:L/PR:N/UI:N/S:U/C:N/I:L/A:H
Remote pre-auth reach on TCP/1514 (AV:N, PR:N, UI:N), easily scripted (AC:L); confirmed DoS/stack-write gives A:H and I:L, with no confidentiality exposure (C:N).
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
6DescriptionNVD
Wazuh is a free and open source platform used for threat prevention, detection, and response. From version 4.8.0 to before version 4.14.4, a stack-based buffer overflow exists in print_hex_string() in wazuh-remoted. The bug is triggered when formatting attacker-controlled bytes using sprintf(dst_buf + 2*i, "%.2x", src_buf[i]) on platforms where char is treated as signed and the compiled code sign-extends bytes before the variadic call. For input bytes such as 0xFF, the formatting can emit "ffffffff" (8 chars) instead of "ff" (2 chars), causing an out-of-bounds write past a fixed 2049-byte stack buffer. The vulnerable path is reachable remotely prior to any agent authentication/registration logic via TCP/1514 when an oversized length prefix causes the “unexpected message (hex)” diagnostic path to run. Additionally, the same unauthenticated oversized-message diagnostic path logs an attacker-controlled hex dump to /var/ossec/logs/ossec.log for each trigger, allowing remote log amplification that can degrade monitoring fidelity and consume disk/I/O. This log amplification is reachable even without triggering the sign-extension overflow (e.g., using bytes < 0x80). This issue has been patched in version 4.14.4.
Executive ViewAI
CVE-2026-28221 is a high-severity buffer overflow in Wazuh manager versions 4.8.0 through 4.14.3 that can be triggered remotely without authentication via TCP/1514. If exploited, it may allow an attacker to crash the manager or potentially execute code, disrupting security monitoring and log collection across the organization. Leadership should care because Wazuh is often a critical security operations component, and exploitation could blind incident detection or lead to broader compromise.
Apply vendor patch.
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.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
Authenticated cluster peers in Wazuh Manager 4.4.0 through 4.14.3 can write arbitrary files outside the cluster synchron
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
EUVD-2026-26270
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB