CVE-2025-62788: Wazuh Vulnerable to Heap Use After Free in w_copy_event_for_log
Wazuh is a free and open source platform used for threat prevention, detection, and response. Prior to 4.11.0, wcopyeventforlog() references memory (initially allocated in OSCleanMSG()) 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Wazuhto a version that resolves this vulnerability.Fixed in 4.11.0
Event History
Frequently Asked Questions
What is the severity of CVE-2025-62788?
CVE-2025-62788 is rated as a medium severity vulnerability.
How do I fix CVE-2025-62788?
To fix CVE-2025-62788, update Wazuh to version 4.11.0 or later.
What systems are affected by CVE-2025-62788?
CVE-2025-62788 affects Wazuh versions prior to 4.11.0.
What are the risks associated with CVE-2025-62788?
CVE-2025-62788 can allow a compromised agent to potentially compromise the integrity of the Wazuh system.
Is there an exploit available for CVE-2025-62788?
Currently, there is no publicly known exploit specifically targeting CVE-2025-62788.