Stack-based Buffer Overflow Affecting wazuh/wazuh package, versions [4.8.0,4.14.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.07% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-WAZUHWAZUH-16415491
  • published4 May 2026
  • disclosed29 Apr 2026
  • creditalimezar

Introduced: 29 Apr 2026

NewCVE-2026-28221  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade wazuh/wazuh to version 4.14.4 or higher.

Overview

Affected versions of this package are vulnerable to Stack-based Buffer Overflow via the print_hex_string function in wazuh-remoted when attacker-controlled bytes are formatted using sprintf on platforms where char is treated as signed, leading to sign-extension and out-of-bounds writes past a fixed stack buffer. An attacker can cause remote code execution or denial of service by sending specially crafted oversized messages prior to authentication over TCP/1514, which triggers the vulnerable diagnostic path. Additionally, remote log amplification is possible by sending unauthenticated oversized messages, resulting in attacker-controlled hex dumps being written to log files, degrading monitoring fidelity and consuming disk/I/O.

CVSS Base Scores

version 4.0
version 3.1