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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-121",
"CWE-170"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45798.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45798.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "2079175732449232036843981731944730527",
"length": 1258
},
"id": "CVE-2026-45798-76c40226",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/wazuh/wazuh/commit/b6aac379982d6144b8da38450cbea6c8dc15be44",
"target": {
"file": "src/shared/version_op.c",
"function": "compare_wazuh_versions"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"122026037465290344113324240173846478808",
"338384601497527746320452320953772889099",
"228988211458791195509067993470987929436",
"102276824146218444218473893962888976605",
"340004146909213435438188438060322461907",
"72488244560585228706078613549218987501",
"3661383373452054794879124119512613626",
"108233358188913406336558149455108926857"
],
"threshold": 0.9
},
"id": "CVE-2026-45798-ad63120e",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/wazuh/wazuh/commit/b6aac379982d6144b8da38450cbea6c8dc15be44",
"target": {
"file": "src/shared/version_op.c"
}
}
]
"2026-09-11T08:19:23Z"