CVE-2026-45798
Wazuh: Pre-auth stack-buffer-overflow in compare_wazuh_versions reachable from wazuh-authd (TCP/1515) via crafted enrollment V: field
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.
INFO
Published Date :
Aug. 19, 2026, 5:18 p.m.
Last Modified :
Sept. 15, 2026, 7:25 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 3.1 | HIGH | MITRE-CVE |
Solution
- Update Wazuh to version 4.14.6 or 5.0.0-beta2.
- Ensure anonymous TLS enrollment is disabled if not needed.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-45798.
| URL | Resource |
|---|---|
| https://github.com/wazuh/wazuh/commit/b6aac379982d6144b8da38450cbea6c8dc15be44 | Patch |
| https://github.com/wazuh/wazuh/pull/36059 | Issue Tracking Patch |
| https://github.com/wazuh/wazuh/releases/tag/v4.14.6 | Patch Release Notes |
| https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta2 | Patch Release Notes |
| https://github.com/wazuh/wazuh/security/advisories/GHSA-4fvp-jfc3-qr6r | Exploit Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-45798 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-45798
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-45798 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-45798 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Sep. 15, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:wazuh:wazuh:5.0.0:beta1:*:*:*:*:*:* *cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:* versions from (including) 4.5.0 up to (excluding) 4.14.6 Added Reference Type GitHub, Inc.: https://github.com/wazuh/wazuh/commit/b6aac379982d6144b8da38450cbea6c8dc15be44 Types: Patch Added Reference Type GitHub, Inc.: https://github.com/wazuh/wazuh/pull/36059 Types: Issue Tracking, Patch Added Reference Type GitHub, Inc.: https://github.com/wazuh/wazuh/releases/tag/v4.14.6 Types: Patch, Release Notes Added Reference Type GitHub, Inc.: https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta2 Types: Patch, Release Notes Added Reference Type GitHub, Inc.: https://github.com/wazuh/wazuh/security/advisories/GHSA-4fvp-jfc3-qr6r Types: Exploit, Vendor Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 19, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-45798', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'yes'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-08-19T17:17:27.587788Z'} -
New CVE Received by [email protected]
Aug. 19, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'wazuh', 'product': 'wazuh', 'versions': [{'status': 'affected', 'version': '>= 4.5.0, < 4.14.6'}, {'status': 'affected', 'version': '>= 5.0.0-beta1, < 5.0.0-beta2'}]}] Added 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. Added CVSS V3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Added CWE CWE-121 Added CWE CWE-170 Added Reference https://github.com/wazuh/wazuh/commit/b6aac379982d6144b8da38450cbea6c8dc15be44 Added Reference https://github.com/wazuh/wazuh/pull/36059 Added Reference https://github.com/wazuh/wazuh/releases/tag/v4.14.6 Added Reference https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta2 Added Reference https://github.com/wazuh/wazuh/security/advisories/GHSA-4fvp-jfc3-qr6r