CVE-2026-40106: Wazuh: Heap-based Buffer Overflow in syscheck Registry Wildcard Expansion (LPE / DoS)
Wazuh is a free and open source platform used for threat prevention, detection, and response. Versions 4.6.0 and above prior to 4.14.5 contain a heap-based buffer overflow vulnerability in the syscheck component of the Wazuh agent for Windows. When expanding registry paths containing wildcards ( or ?), the agent allocates a fixed-size heap buffer of 256 bytes (OSSIZE256). By creating a registry subkey with a maximum allowed length (255 characters) inside a monitored path, a low-privileged local attacker can force an out-of-bounds write during string concatenation. Since wazuh-agent.exe runs as NT AUTHORITY\SYSTEM, this can lead to a silent Denial of Service (blinding the agent) or potentially Local Privilege Escalation (LPE). This issue has been fixed in version 4.14.5.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
wazuh-agent.exe (Wazuh agent for Windows) - syscheck componentto a version that resolves this vulnerability.Fixed in 4.14.5
Event History
Frequently Asked Questions
What is the severity of CVE-2026-40106?
The severity of CVE-2026-40106 is rated high with a score of 7.8.
How do I fix CVE-2026-40106?
To fix CVE-2026-40106, upgrade the Wazuh agent for Windows to version 4.14.5 or later.
What types of attacks can CVE-2026-40106 be used for?
CVE-2026-40106 can potentially allow for local privilege escalation (LPE) and denial of service (DoS) attacks.
Which versions of Wazuh are affected by CVE-2026-40106?
CVE-2026-40106 affects Wazuh versions 4.6.0 to 4.14.4.
What component of Wazuh is vulnerable in CVE-2026-40106?
The vulnerable component in CVE-2026-40106 is the syscheck component of the Wazuh agent for Windows.