CVE-2026-28221 Details
Description
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.
A stack-based buffer overflow vulnerability has been identified in Wazuh versions 4.8.0 prior to 4.14.4. The issue arises in the 'print_hex_string()' function of 'wazuh-remoted', where attacker-controlled bytes are formatted using 'sprintf' in a manner that can lead to an out-of-bounds write. This vulnerability is triggered on platforms that treat 'char' as signed, allowing bytes like 0xFF to be improperly formatted and cause a buffer overflow past a fixed 2049-byte stack buffer. The vulnerability can be exploited remotely, without authentication, through TCP port 1514, by sending an oversized message that triggers the vulnerable diagnostic path. Additionally, this path logs an attacker-controlled hex dump to 'ossec.log', creating a log amplification effect that can disrupt normal monitoring and consume system resources.
Users can upgrade to Wazuh version 4.14.4 or later, where this vulnerability has been patched.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/wazuh/wazuh/security/advisories/GHSA-q9vv-7w4c-f4cm | CISA-ADP | ExploitVendor Advisory |
| https://github.com/wazuh/wazuh/releases/tag/v4.14.4 | [email protected] | Release Notes |
| https://github.com/wazuh/wazuh/security/advisories/GHSA-q9vv-7w4c-f4cm | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-121 | Stack-based Buffer Overflow | [email protected] |
| CWE-400 | Uncontrolled Resource Consumption | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| wazuh wazuh | >= 4.8.0, < 4.14.4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 30, 2026 | Initial Analysis | [email protected] |
| Apr 29, 2026 | New CVE Received | [email protected] |
| Apr 29, 2026 | CVE Modified | CISA-ADP |