CVE-2025-62792
JSON

6.9medium

Wazuh vulnerable to Heap-based Buffer Over-read in w_expression_match

Severity
6.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.38% (higher than 34% 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. Prior to 4.12.0, a buffer over-read occurs in w_expression_match() when strlen() is called on str_test, because the corresponding buffer is not being properly NULL terminated during its allocation in OS_CleanMSG(). A compromised agent can cause a READ operation beyond the end of the allocated buffer (which may contain sensitive information) by sending a specially crafted message to the wazuh manager. An attacker who is able to craft and send an agent message to the wazuh manager can cause a buffer over-read and potentially access sensitive data. This vulnerability is fixed in 4.12.0.

Affected

Product or packageVersionsReported by
wazuh wazuh< 4.12.0, before 4.12.0CVE List, NVD

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-126CWE-170

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

Wazuh is a free and open source platform used for threat prevention, detection, and response. Prior to 4.12.0, a buffer over-read occurs in w_expression_match() when strlen() is called on str_test, because the corresponding buffer is not being properly NULL terminated during its allocation in OS_CleanMSG(). A compromised agent can cause a READ operation beyond the end of the allocated buffer (which may contain sensitive information) by sending a specially crafted message to the wazuh manager. An attacker who is able to craft and send an agent message to the wazuh manager can cause a buffer over-read and potentially access sensitive data. This vulnerability is fixed in 4.12.0.

NVD (es)

Wazuh es una plataforma de código abierto y gratuita utilizada para la prevención, detección y respuesta a amenazas. Previo a la 4.12.0, se produce una lectura excesiva del búfer en w_expression_match() cuando se llama a strlen() en str_test, debido a que el búfer correspondiente no se termina correctamente con NULL durante su asignación en OS_CleanMSG(). Un agente comprometido puede causar una operación de LECTURA más allá del final del búfer asignado (que puede contener información sensible) enviando un mensaje especialmente diseñado al gestor de Wazuh. Un atacante que sea capaz de diseñar y enviar un mensaje de agente al gestor de Wazuh puede causar una lectura excesiva del búfer y potencialmente acceder a datos sensibles. Esta vulnerabilidad se corrige en la 4.12.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-62792 changed 2025-10-29CVE Terms of Use
NVDCVE-2025-62792 changed 2026-10-19Public domain