Skip to main content

Wazuh Manager CVE-2025-62788

MEDIUM
Use After Free (CWE-416)
2025-10-29 security-advisories@github.com
6.3
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Compromise or enroll a Wazuh agent
  2. Delivery
    Craft malformed event message
  3. Exploit
    Send to Wazuh manager
  4. Execution
    Trigger use-after-free in w_copy_event_for_log()
  5. Impact
    Corrupt 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (github) PRIMARY 6.3 MEDIUM
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
vuln.today AI 4.2 MEDIUM

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).

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 76% exploitable
Prevalence
Medium
popular open-source SIEM/XDR, moderate but not universal enterprise footprint
Exploit
POC
Public exploit code exists
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*

More in Wazuh

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2021-44079 CRITICAL POC
9.8 Nov 22

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

CVE-2026-48024 CRITICAL POC
9.1 Aug 19

Path-traversal-driven root code execution affects the Wazuh security platform's cluster synchronization layer in version

CVE-2026-48162 CRITICAL POC
9.1 Aug 19

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

CVE-2026-61800 CRITICAL POC
9.1 Aug 27

Arbitrary file write leading to root remote code execution affects Wazuh worker nodes in clustered deployments running v

CVE-2026-25769 CRITICAL POC
9.1 Mar 17

A critical deserialization vulnerability in Wazuh's cluster mode allows attackers with access to any worker node to achi

CVE-2025-30201 CRITICAL POC
9.1 Nov 21

Wazuh Agent before 4.13.0 on Windows can be made by an authenticated, high-privileged configuration writer to open attac

CVE-2026-44901 HIGH POC
8.4 Aug 19

Remote code execution on the Wazuh cluster master node is achievable by any attacker who controls a cluster worker node,

CVE-2026-54083 HIGH POC
8.1 Aug 27

Path traversal in Wazuh's ip-customblock active response script allows low-privileged remote attackers to create or dele

CVE-2018-19666 HIGH POC
7.8 Nov 29

The agent in OSSEC through 3.1.0 on Windows allows local users to gain NT AUTHORITY\SYSTEM access via Directory Traversa

CVE-2026-44252 HIGH POC
7.7 Aug 19

Cluster key disclosure in Wazuh Manager versions 4.0.0 through 4.14.4 enables a two-stage privilege escalation: a low-pr

CVE-2026-71540 HIGH POC
7.5 Sep 24

Unauthenticated remote denial of service in the Wazuh cluster daemon (wazuh-clusterd) allows a network peer to exhaust p

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy