CVE-2026-45798: wazuh Stack-based Buffer Overflow
Vulnerability summary
CVE-2026-45798 is a high (CVSS 7.5) Stack-based Buffer Overflow vulnerability in wazuh. EPSS estimates a 0.92% chance of exploitation in the next 30 days, higher than 59.7% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 19-08-2026PublishedVulnerability first disclosed.
- 19-08-2026Last modifiedVulnerability information updated.
Description
Wazuh is a free and open source platform used for threat prevention, detection, and response. From 4.5.0 until 4.14.6 and 5.0.0-beta2, compare_wazuh_versions() in src/shared/version_op.c copies the attacker-controlled enrollment V: field into a 10-byte stack buffer with strncpy() but does not explicitly terminate the buffer. The function is reachable before authentication through wazuh-authd on TCP port 1515 when anonymous TLS enrollment is enabled. A version string of at least nine non-null bytes can cause strchr() and strtok() to read beyond ver2 and can make strtok() write a null byte into adjacent stack memory, allowing a remote denial of service. This issue is fixed in versions 4.14.6 and 5.0.0-beta2.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.92%
Chance of exploitation in the next 30 days
Percentile
60%
Versus all other CVEs
30-day change
+0.38 pp
From 0.53% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundWazuh
Maturity: poc
Weaknesses
CWE · root cause- CWE-121Stack-based Buffer OverflowA stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).
- CWE-170Improper Null TerminationThe product does not terminate or incorrectly terminates a string or array with a null character or equivalent terminator.
Affected systems
Wazuh1 product
- wazuh≥ 5.0.0-beta1, < 5.0.0-beta2 | ≥ 4.5.0, < 4.14.6 | 5.0.0:beta1
1 vendor · 1 product
References
5 links- github.com/wazuh/wazuh/security/advisories/GHSA-4fvp-jfc3-qr6rX Refsource CONFIRMExploitVendor Advisory