CVE-2026-44254
JSON

5.3medium

Wazuh: Stack Out-of-Bounds Write in remoted Decompression Path

Severity
5.3medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.41% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

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.

Affected

Product or packageVersionsReported by
wazuh wazuh>= 1.0.0, < 4.14.6, >= 5.0.0-beta1, < 5.0.0-beta2, from 1.0.0 before 4.14.6, 5.0.0CVE List, NVD

Classification

CWE-131CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Wazuh es una plataforma de código abierto y gratuita utilizada para la prevención, detección y respuesta a amenazas. Desde 1.0.0 hasta 4.14.6 y 5.0.0-beta2, HandleSecureMessage() en src/remoted/secure.c pasa un puntero dentro de su búfer de pila a ReadSecMSG(), y src/os_crypto/shared/msgs.c descomprime hasta OS_MAXSTR bytes en ese desplazamiento. Para un mensaje de agente cifrado en el puerto TCP 1514 que se expande a 65.536 bytes, os_zlib_uncompress() escribe un byte nulo de terminación más allá del final del búfer de destino. La escritura fuera de límites de la pila resultante en el demonio remoto de nivel raíz puede bloquear el procesamiento de mensajes e interrumpir las comunicaciones del agente. Este problema está solucionado en las versiones 4.14.6 y 5.0.0-beta2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-44254 changed 2026-08-19CVE Terms of Use
NVDCVE-2026-44254 changed 2026-10-27Public domain