CVE-2026-45798

Wazuh: Pre-auth stack-buffer-overflow in compare_wazuh_versions reachable from wazuh-authd (TCP/1515) via crafted enrollment V: field

HIGH
7.5
CVSS Score
Published: August 19, 2026 at 04:20 PM UTC
Updated: October 26, 2026 at 11:10 AM UTC
1 product affected across 1 vendorWazuh

Using wazuh by wazuh?

Get instant alerts when new vulnerabilities affect wazuh - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.9%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.5.0 ≤ v < 4.14.65.0.05.0.0 beta1
Affected range stops below 4.14.6, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.0.0-beta2, so it looks safe — our inference, not a vendor statement

References (5)

x_refsource_CONFIRMExploitVendor Advisory
Source: cverecord
https://github.com/wazuh/wazuh/security/advisories/GHSA-4fvp-jfc3-qr6r
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/wazuh/wazuh/pull/36059
x_refsource_MISCPatchRelease Notes
Source: cverecord
https://github.com/wazuh/wazuh/releases/tag/v4.14.6
x_refsource_MISCPatchRelease Notes
Source: cverecord
https://github.com/wazuh/wazuh/releases/tag/v5.0.0-beta2

SSVC — Action Prioritization

SSVCPoCAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-121CWE-170

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card