# CVE-2026-40106: Wazuh: Heap-based Buffer Overflow in syscheck Registry Wildcard Expansion (LPE / DoS)

- Severity: Medium 4.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.13%, higher than 2% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-16T23:57:16.037Z
- Modified: 2026-07-20T02:29:49.720Z
- Weaknesses: CWE-122
- 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. 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 (OS_SIZE_256). 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.

(As written by CVE List.)

## Affected

- wazuh wazuh: >= 4.6.0, < 4.14.5; from 4.6.0 before 4.14.5

## Every score

- GitHub_M: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/wazuh/wazuh/security/advisories/GHSA-qvrc-pcfc-jhqc> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-40106](https://www.cve.org/CVERecord?id=CVE-2026-40106), CVE Terms of Use, modified 2026-07-17
- NVD: [CVE-2026-40106](https://nvd.nist.gov/vuln/detail/CVE-2026-40106), Public domain, modified 2026-07-20

---

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