Wazuh Manager
CVE-2025-62788
MEDIUM
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise or enroll a Wazuh agent
-
DeliveryCraft malformed event message
-
ExploitSend to Wazuh manager
-
ExecutionTrigger use-after-free in w_copy_event_for_log()
-
ImpactCorrupt manager memory / impact availability
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the attacker to control a Wazuh agent that can send messages to the manager - explicitly a 'compromised agent' per the description - meaning prior endpoint compromise or the ability to enroll/spoof an agent with valid manager communication. The crafted message must reach the manager's message-cleaning path (OS_CleanMSG) so that w_copy_event_for_log() dereferences the freed buffer. Affected versions are all releases prior to 4.11.0 (fixed in 4.11.0). Limiting factors: the AT:P metric reflects that a specific precondition (a controlled, communicating agent) must hold; success is non-deterministic because the use-after-free only corrupts data if the freed region was reallocated and reused elsewhere, so reliable, repeatable exploitation is not guaranteed. |
| Impact | This is a medium-severity, defender-side memory-safety flaw whose real-world priority is moderate, not critical. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N) scores 6.3 and, importantly, declares VC:N/VI:N/VA:L - i.e. no confidentiality or integrity impact and only LOW availability impact at the vulnerable system. This directly conflicts with the prose description, which repeatedly frames the issue as a compromise of application 'integrity.' That conflict matters: the CVSS numerics say the practical outcome is a low-impact availability/data-corruption event, while the narrative implies integrity corruption - verify intended impact with the Wazuh advisory before weighting this as an integrity threat. The AT:P (Attack Requirement: Present) metric and the phrase 'compromised agent' are the real gatekeeper: although PR:N is set, exploitation presupposes the attacker already controls or has enrolled a Wazuh agent that can send authenticated messages to the manager, so this is not a drive-by unauthenticated internet attack. It is a post-foothold or malicious-agent escalation. POC/exploit material is reported as publicly available (the GitHub Security Advisory GHSA-qjcw-fjvh-8q4g is tagged as an exploit reference), but there is no CISA KEV listing and no EPSS score was provided, so there is no evidence of active, widespread exploitation - treat public exploit availability and active exploitation as distinct. Net: patch it as routine hardening of a security-monitoring chokepoint, but it does not warrant emergency out-of-band response absent other signals. |
| Exploit ScenarioDerived | An attacker who has compromised an endpoint running a Wazuh agent (or who can enroll/spoof an agent) crafts a malformed event message and sends it to the Wazuh manager. When the manager processes it, OS_CleanMSG() frees a buffer that w_copy_event_for_log() then re-references, triggering a use-after-free (CWE-416) that can corrupt valid in-memory data on the manager. Public exploit/advisory material (GHSA-qjcw-fjvh-8q4g) describing the condition exists, though reliable exploitation is non-deterministic because it depends on heap state at the time of the free. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 19, 2026
Use-after-free in Wazuh Manager (all releases prior to 4.11.0) lets an attacker who already controls a Wazuh agent send a crafted agent message that is handled by OS_CleanMSG() and later re-read by w_copy_event_for_log() after the underlying buffer has been freed, allowing previously freed memory to corrupt valid data and damage application integrity. Per the assessed vector the attack is network-reachable but requires authenticated agent-level access (PR:L) and high complexity (AC:H), with impact limited to low integrity and low availability; corruption is non-deterministic because it only manifests if the freed region is reallocated and reused elsewhere. Publicly available exploit code exists, but there is no confirmation of active exploitation (not listed in CISA KEV).
RemediationAI
Upgrade the Wazuh manager to 4.11.0 or later, which is the vendor-released patch containing the fix described in GHSA-qjcw-fjvh-8q4g (https://github.com/wazuh/wazuh/security/advisories/GHSA-qjcw-fjvh-8q4g); schedule the manager upgrade first, since the flaw lives in manager-side message handling and agents can be rolled forward afterwards. Until the upgrade is complete, treat agent enrollment as a trust boundary: disable automatic agent enrollment or require administrator approval for new agents so an intruder cannot self-enroll a foothold, and rotate compromised agent keys, accepting the operational cost of re-enrolling legitimate endpoints. Restrict manager agent-listener ports (default 1514/1515) to known endpoint network ranges with host or network firewalls so only managed hosts can submit agent messages, understanding this is coarse protection against a genuinely compromised agent inside the allowed range. Keep a pre-upgrade snapshot of manager state and logs, because a use-after-free may present as unexplained heap corruption or manager instability rather than a clean crash signature, and monitor for anomalous agent registration and reconnect patterns while the fix is pending.
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 SIEM/XDR platform built around a manager that receives, decodes and analyzes event messages sent by lightweight agents deployed on monitored endpoints; agents authenticate to the manager using enrollment-issued keys. In affected builds, OS_CleanMSG() allocates and then releases the buffer used to normalize an incoming agent message, while w_copy_event_for_log() later copies that same event data for logging purposes, dereferencing memory that is no longer owned by the caller. This is the classic CWE-416 use-after-free pattern: the dangling pointer is only dangerous if the allocator hands the freed chunk to another request in the interim, in which case the log-copy path reads or writes attacker-influenced bytes into data owned by a different structure. Because the trigger point is the manager's message-cleaning route, the primitive is reachable only by a peer that can submit well-formed agent traffic with valid credentials, and the outcome is heap-state dependent rather than a deterministic control-flow hijack, which is why the assessed vector (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L) rates it as a medium memory-corruption/integrity issue rather than a remotely exploitable pre-auth compromise. The CPE cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:* reflects that every Wazuh build before the 4.11.0 fix carries the flawed cleanup/logging sequence.
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:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Network-reachable manager but requires a controlling/enrolled agent (PR:L) and non-deterministic heap reuse (AC:H); use-after-free yields low integrity/availability impact and no confidentiality (C:N).
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.11.0, w_copy_event_for_log() references memory (initially allocated in OS_CleanMSG()) after it has been freed. A compromised agent can potentially compromise the integrity of the application 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 leverage this issue to potentially compromise the integrity of the application (the use of previously freed memory may corrupt valid data, if the memory area in question has been allocated and used properly elsewhere). This vulnerability is fixed in 4.11.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
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
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