CVE-2025-62786 Wazuh Vulnerable to Heap-based Buffer Out-Of-Bounds WRITE in decode_win_permissions

Medium 6.3 Published Updated

A compromised agent can trigger a heap-based buffer overflow in the Wazuh manager, potentially leading to remote code execution.

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-62786?

CVE-2025-62786 is a medium-severity memory corruption 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. A heap-based out-of-bounds WRITE occurs in decode_win_permissions, resulting in writing a NULL byte 2 bytes before the start of the buffer allocated to decoded_it. A compromised agent can potentially leverage this issue to perform remote code execution, 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 achieve remote code execution on the wazuh manager (the exploitability of this vulnerability depends on the specifics of the respective heap allocator). This vulnerability is fixed in 4.10.2.

Weakness: CWE-124

Which versions are affected by CVE-2025-62786?

It affects 1 product.

Products include Wazuh Wazuh.

How do I fix CVE-2025-62786?

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

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-62786 being exploited?

There is no known exploitation of CVE-2025-62786 in the wild and no public exploit code.

All Wazuh Wazuh vulnerabilities

Sources

Also known as GHSA-2c8r-p6r5-xxmr.

Is CVE-2025-62786 in your software?

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

Check your SBOMs for free