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, 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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-62788
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 04:33 UTC · Revision 1
Source evidence
Wazuh Vulnerable to Heap Use After Free in w_copy_event_for_log
core-osv · Original sourcePublished 29 Oct 2025, 16:42 UTC
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.
osv:CVE-2025-62788
Complete source record
{
"id": "57630796abe10f079a6ca22aba56b1311e8d476c873181c17d30f6b2ef7399aa",
"url": "https://osv.dev/vulnerability/CVE-2025-62788",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Wazuh Vulnerable to Heap Use After Free in w_copy_event_for_log",
"summary": "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.",
"evidence": "osv:CVE-2025-62788",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2025-62788",
"aliases": [
"CVE-2025-62788",
"GHSA-qjcw-fjvh-8q4g"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/wazuh/wazuh",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "b3de9acf06147d614f053e87f959a75a0a132e86"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "4.11.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"cpe": "cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "4.11.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v3.13.1",
"v3.13.0",
"v3.12.0",
"v3.8.0",
"v3.7.0",
"v3.6.1",
"v3.6.0",
"v3.5.0",
"v3.2.0",
"v3.1.0",
"v2.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-62788.json"
}
}
],
"modified": "2026-10-28T02:30:49.772012846Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/62xxx/CVE-2025-62788.json",
"https://github.com/wazuh/wazuh/security/advisories/GHSA-qjcw-fjvh-8q4g",
"https://nvd.nist.gov/vuln/detail/CVE-2025-62788"
],
"provider_metadata": {
"cwe_ids": [
"CWE-416"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/62xxx/CVE-2025-62788.json"
}
},
"related_cves": [
{
"value": "CVE-2025-62788",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518159,
"published_at": "2025-10-29T16:42:35.789+00:00"
}