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

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-10-29T16:42:35.789Z
- Modified: 2026-10-19T13:10:00.110Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- wazuh wazuh: < 4.11.0; before 4.11.0

## Every score

- GitHub_M: CVSS:4.0 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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/wazuh/wazuh/security/advisories/GHSA-qjcw-fjvh-8q4g> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2025-62788](https://www.cve.org/CVERecord?id=CVE-2025-62788), CVE Terms of Use, modified 2025-10-29
- NVD: [CVE-2025-62788](https://nvd.nist.gov/vuln/detail/CVE-2025-62788), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-62788 · Whole record: https://cve.day/CVE-2025-62788.json · Rebuilt by cve.day 2026-11-25T22:59:07.002Z
