CVE-2026-45798

Source
https://cve.org/CVERecord?id=CVE-2026-45798
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45798.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-45798
Aliases
  • GHSA-4fvp-jfc3-qr6r
Published
2026-08-19T16:20:54Z
Modified
2026-09-17T08:15:53Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Wazuh: Pre-auth stack-buffer-overflow in compare_wazuh_versions reachable from wazuh-authd (TCP/1515) via crafted enrollment V: field
Details

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.

Database specific
{
    "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"
}
References

Affected packages

Git / github.com/wazuh/wazuh

Affected ranges

Type
GIT
Repo
https://github.com/wazuh/wazuh
Events
Database specific
Show details
{
    "cpe":  [
        "cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:wazuh:wazuh:5.0.0:beta1:*:*:*:*:*:*"
    ],
    "extracted_events":  [
        {
            "introduced":  "4.5.0"
        },
        {
            "fixed":  "4.14.6"
        },
        {
            "introduced":  "5.0.0-beta1"
        },
        {
            "last_affected":  "5.0.0-beta1"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

5.*
5.0.0-beta1
v5.*
v5.0.0-beta1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45798.json"
vanir_signatures
[
    {
        "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"
        }
    }
]
vanir_signatures_modified
"2026-09-17T08:15:53Z"