Agent crash via unchecked registry path concatenation
Published Jul 16, 2026 · Updated Jul 17, 2026
Heap-based buffer overflow in Wazuh agent 4.6.0 through 4.14.4 allows local users to crash syscheck through a crafted registry key. The w_expand_by_wildcard function in syscheck_op.c copies the base path, matched subkey, and remainder with strcpy and strcat into a fixed 256-byte heap buffer without checking their combined length. Exploitation requires a wildcard-monitored registry path writable by a low-privileged Windows user; repeated agent crashes are demonstrated, while SYSTEM-level execution is theoretical.
Summary
What happened
Heap-based buffer overflow in Wazuh agent 4.6.0 through 4.14.4 allows local users to crash syscheck through a crafted registry key. The w_expand_by_wildcard function in syscheck_op.c copies the base path, matched subkey, and remainder with strcpy and strcat into a fixed 256-byte heap buffer without checking their combined length. Exploitation requires a wildcard-monitored registry path writable by a low-privileged Windows user; repeated agent crashes are demonstrated, while SYSTEM-level execution is theoretical.
The record
- CVE
- CVE-2026-40106
- Published
- Jul 16, 2026
- Updated
- Jul 17, 2026
- Vendor
- Wazuh
- Product
- Wazuh
- Classifications
- CWE-122, T1562.001
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Jul 16, 2026CVE publishedPublication date reported by the CVE source.
- Jul 17, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 4.6.0, < 4.14.5
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Wazuh registry wildcard heap-overflow proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo