Wazuh is a free and open source platform used for threat prevention, detection, and response. From 3.9.0 until 4.14.5 and 5.0.0-beta2, the Wazuh cluster protocol in framework/wazuh/core/cluster/common.py allows an authenticated cluster node to exhaust memory on the master. The receive_str() method accepts an attacker-controlled total for InBuffer without a maximum, so a new_str command can request a multi-gigabyte bytearray and repeated requests accumulate in in_str. The divided-message path also retains flag_divided fragments under unique counters in div_msg_box without a count, aggregate-size, or expiration limit. Exploitation can disrupt agent connectivity and alert processing across the monitored environment. This issue is fixed in versions 4.14.5 and 5.0.0-beta2.
https://github.com/wazuh/wazuh/security/advisories/GHSA-h5r8-gvhv-cmp2
https://github.com/wazuh/wazuh/releases/tag/v4.14.5
https://github.com/wazuh/wazuh/pull/35173
https://github.com/wazuh/wazuh/commit/d29c5c89a0e16477545ca27f4e06229021e3183c