CVE-2025-62788 Wazuh Vulnerable to Heap Use After Free in w_copy_event_for_log

Medium 6.3 Published Updated

A compromised agent can corrupt application integrity or cause denial of service in the Wazuh manager via a use-after-free vulnerability in event logging.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-62788?

CVE-2025-62788 is a medium-severity use after free vulnerability in Wazuh Wazuh, published on 29 Oct 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-416

Which versions are affected by CVE-2025-62788?

It affects 1 product.

Products include Wazuh Wazuh.

How do I fix CVE-2025-62788?

No fix has been published for CVE-2025-62788 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2025-62788 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-62788 exists.

All Wazuh Wazuh vulnerabilities

Sources

Also known as GHSA-qjcw-fjvh-8q4g.

Is CVE-2025-62788 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free