CVE-2025-62792
Wazuh Agent vulnerability analysis and mitigation

Overview

Wazuh, a free and open source platform used for threat prevention, detection, and response, was found to contain a buffer over-read vulnerability (CVE-2025-62792) prior to version 4.12.0. The vulnerability was discovered in the wexpressionmatch() function where a buffer over-read occurs when strlen() is called on strtest, due to improper NULL termination during buffer allocation in OSCleanMSG(). The issue was disclosed on October 29, 2025 (GitHub Advisory).

Technical details

The vulnerability occurs in the wexpressionmatch() function when strlen() is called on strtest, as the corresponding buffer is not properly NULL terminated during its allocation in OSCleanMSG(). The issue stems from lf->log pointing to the last byte of the buffer, which holds a random value, causing strlen to continue reading beyond the end of the allocated buffer until reaching a null terminator. The vulnerability has been assigned a CVSS v4.0 base score of 6.9 (Medium) with vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N, and a CVSS v3.1 base score of 7.5 (High) (NVD).

Impact

When successfully exploited, this vulnerability allows an attacker who can craft and send an agent message to the Wazuh manager to cause a buffer over-read, potentially accessing sensitive data beyond the intended buffer boundaries. The attack requires either enrolling a new agent (if agent enrollment is open) or compromising an existing agent (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Wazuh version 4.12.0. Users are advised to upgrade to this version or later to mitigate the risk (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Wazuh Agent vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-30201CRITICAL9.1
  • Wazuh AgentWazuh Agent
  • cpe:2.3:a:wazuh:wazuh
NoYesNov 21, 2025
CVE-2025-62792MEDIUM6.9
  • Wazuh AgentWazuh Agent
  • cpe:2.3:a:wazuh:wazuh
NoYesOct 29, 2025
CVE-2025-62791MEDIUM6.9
  • Wazuh AgentWazuh Agent
  • cpe:2.3:a:wazuh:wazuh
NoYesOct 29, 2025
CVE-2025-64169MEDIUM5.1
  • Wazuh AgentWazuh Agent
  • cpe:2.3:a:wazuh:wazuh
NoYesNov 21, 2025
CVE-2025-54866LOW1.8
  • Wazuh AgentWazuh Agent
  • cpe:2.3:a:wazuh:wazuh
NoYesNov 21, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management