Wazuh Manager
CVE-2025-62792
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise or control an enrolled agent
-
DeliveryCraft malformed agent message
-
ExploitSend to Wazuh manager
-
ExecutionTrigger non-terminated buffer in OS_CleanMSG()
-
PersistOver-read heap memory via strlen()/w_expression_match()
-
ImpactDisclose adjacent sensitive data or crash manager
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer over-read prevention
|
| Exploitation Conditions | Exploitation requires the attacker to be able to craft and send an agent message to the Wazuh manager - in practice, control over a compromised or malicious enrolled agent, since agents authenticate to the manager via enrollment keys. The affected code path is message sanitization in OS_CleanMSG() feeding w_expression_match(), so the manager must be running an affected version prior to 4.12.0 and must accept agent traffic from the attacker-controlled endpoint. Limiting factors: the agent-authentication/enrollment requirement constrains this from being a pure anonymous internet attack, the impact is primarily a bounded heap over-read (potential sensitive-data leak or process disruption) rather than code execution, and managers not exposed to untrusted agents are far less exposed. Upgrading to 4.12.0 removes the condition entirely. |
| Impact | This is a medium-severity information-disclosure flaw (CWE-126 buffer over-read), and the real-world risk is bounded rather than critical. The official CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N, VC:N/VI:N/VA:L, score 6.9) describes network-reachable, low-complexity, no-interaction exploitation, and publicly available exploit code exists - raising the practical likelihood of exploitation. However, there are notable tensions among the signals. First, the vector marks PR:N (unauthenticated), yet the description repeatedly frames the attacker as 'a compromised agent' able to 'craft and send an agent message to the wazuh manager' - Wazuh agents normally authenticate via enrollment keys, so realistic exploitation presupposes attacker control over an already-enrolled/compromised agent rather than pure anonymous network access; verify the trust boundary with the vendor. Second, the vector sets VC:N (no confidentiality impact) and VA:L (low availability impact), which conflicts with the narrative that the over-read 'may contain sensitive information' and 'potentially access sensitive data' - the text implies a confidentiality impact that the scored vector does not reflect. No EPSS score and no KEV listing were provided, so there is no evidence of active or widespread exploitation; absence of EPSS is a data gap, not a signal of safety. Net: a genuine, patchable bug worth prioritizing on internet-exposed or multi-tenant Wazuh managers, but not an emergency-grade unauthenticated RCE. |
| Exploit ScenarioDerived | An attacker who controls or has compromised an enrolled Wazuh agent sends a specially crafted message to the Wazuh manager; during message cleanup in OS_CleanMSG() the str_test buffer is not NULL-terminated, so the subsequent strlen()/w_expression_match() reads past the allocated buffer and may return adjacent heap memory that can contain sensitive data, or crash the manager process. Public exploit code exists, lowering the barrier to reproduction, though exploitation realistically requires the ability to deliver an authenticated agent message to the manager. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
Buffer over-read in the Wazuh manager before 4.12.0 allows an attacker who controls an enrolled agent to send a crafted message that causes strlen() to read past the end of a non-NULL-terminated buffer in OS_CleanMSG()/w_expression_match(), potentially leaking sensitive manager memory or disrupting the process. The flaw is a CWE-126 over-read rated medium severity by the independent assessment, and exploitation requires the ability to submit agent traffic to the manager, typically through a compromised or malicious enrolled agent. Publicly available exploit code exists, but no confirmed active exploitation (CISA KEV) is indicated.
RemediationAI
Upgrade the Wazuh manager to 4.12.0, which is the vendor-released patch for this issue; consult the advisory at https://github.com/wazuh/wazuh/security/advisories/GHSA-2672-vfhm-xhr6 for upgrade guidance. If immediate upgrade is not possible, restrict the manager's agent communication port (default 1514/TCP) to known agent IP ranges and enforce network segmentation so only trusted enrolled agents can reach it, accepting reduced coverage for roaming agents; revoke and re-enroll keys for any suspected compromised agent, and monitor manager logs for malformed agent messages, with the trade-off of operational overhead and potential false positives. Blocking agent traffic or disabling enrollment eliminates the attack path but stops monitoring.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Wazuh is an open-source security platform whose manager receives and processes messages from enrolled agents. In affected releases prior to 4.12.0, OS_CleanMSG() allocates a buffer for agent-supplied data without properly NULL-terminating it; later, w_expression_match() calls strlen() on that buffer, causing a read beyond the allocated heap region. This is a classic CWE-126 buffer over-read that can expose adjacent memory contents (confidentiality impact) and may cause process disruption (limited availability impact). The supplied CPE cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:* identifies the Wazuh product family without an explicit version bound, while the CVE and vendor advisory specify 4.12.0 as the fix. The independent assessment applies CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L because the attacker must control an enrolled agent; although the supplied CVSS 4.0 vector shows PR:N, the authoritative prerequisites require agent enrollment/authentication, and the impact is bounded to information disclosure and possible process disruption rather than code execution.
Know when Wazuh gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Requires ability to send an authenticated agent message (compromised/enrolled agent), so PR:L not PR:N; low-complexity remote over-read yields limited confidentiality leak (C:L) and possible manager crash (A:L).
Primary rating from Vendor (github).
CVSS VectorVendor: github
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Affected Products (CPE)CVE.org
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
In the wazuh-slack active response script in Wazuh 4.2.x before 4.2.5, untrusted user agents are passed to a curl comman
Path-traversal-driven root code execution affects the Wazuh security platform's cluster synchronization layer in version
Arbitrary file read in Wazuh cluster deployments (4.0.0 through 4.14.5, and 5.0.0-beta1/beta2) lets a peer node that alr
Arbitrary file write leading to root remote code execution affects Wazuh worker nodes in clustered deployments running v
A critical deserialization vulnerability in Wazuh's cluster mode allows attackers with access to any worker node to achi
Wazuh Agent before 4.13.0 on Windows can be made by an authenticated, high-privileged configuration writer to open attac
Remote code execution on the Wazuh cluster master node is achievable by any attacker who controls a cluster worker node,
Path traversal in Wazuh's ip-customblock active response script allows low-privileged remote attackers to create or dele
The agent in OSSEC through 3.1.0 on Windows allows local users to gain NT AUTHORITY\SYSTEM access via Directory Traversa
Cluster key disclosure in Wazuh Manager versions 4.0.0 through 4.14.4 enables a two-stage privilege escalation: a low-pr
Unauthenticated remote denial of service in the Wazuh cluster daemon (wazuh-clusterd) allows a network peer to exhaust p
NVD
CVE.org
EPSS
GitHub
Exploit-DB