CVE-2026-41499
Received Received - Intake

Heap Out-of-Bounds Write in Wazuh Agent OS Parsing

Vulnerability report for CVE-2026-41499, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-04-29

Last updated on: 2026-05-01

Assigner: GitHub, Inc.

Description

Wazuh is a free and open source platform used for threat prevention, detection, and response. From version 4.0.0 to before version 4.14.4, multiple heap-based out-of-bounds WRITE vulnerabilities exist in parse_uname_string() (remoted_op.c). This function processes OS identification data from agents and contains a dangerous code pattern that appears in 4 locations within the same function: writing to strlen(ptr) - 1 without checking for empty strings. When the string is empty, strlen() returns 0, and 0 - 1 wraps to SIZE_MAX due to unsigned integer underflow. Due to pointer arithmetic wrapping, SIZE_MAX effectively becomes -1, causing a write exactly 1 byte before the allocated buffer. This corrupts heap metadata (e.g., the chunk size field in glibc malloc), leading to heap corruption. This issue has been patched in version 4.14.4.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-04-29
Last Modified
2026-05-01
Generated
2026-07-26
AI Q&A
2026-04-29
EPSS Evaluated
2026-07-25
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
wazuh wazuh From 4.0.0 (inc) to 4.14.4 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-191 The product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result.
CWE-124 The product writes to a buffer using an index or pointer that references a memory location prior to the beginning of the buffer.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability exists in Wazuh versions from 4.0.0 up to but not including 4.14.4, specifically in the parse_uname_string() function within remoted_op.c. The function processes OS identification data from agents and contains a dangerous code pattern where it writes to strlen(ptr) - 1 without checking if the string is empty.

If the string is empty, strlen() returns 0, and subtracting 1 causes an unsigned integer underflow, wrapping to SIZE_MAX. This results in a write occurring one byte before the allocated buffer, corrupting heap metadata such as the chunk size field used by glibc malloc. This heap corruption can lead to unstable behavior or exploitation.

The issue was fixed in Wazuh version 4.14.4.

Detection Guidance

This vulnerability manifests when the Wazuh manager processes malformed agent OS identification data, specifically in the parse_uname_string() function. Detection involves monitoring for crashes or heap corruption symptoms triggered by malformed keep-alive messages from agents.

Since the vulnerability is triggered by crafted keep-alive messages, network monitoring tools can be used to inspect agent communication for unusual or malformed uname data.

No specific detection commands are provided in the resources, but general approaches include:

  • Monitoring Wazuh manager logs for crashes or heap corruption errors.
  • Using network packet capture tools (e.g., tcpdump, Wireshark) to analyze agent keep-alive messages for malformed OS identification strings.
  • Checking the Wazuh manager version to identify if it is below 4.14.4, which is vulnerable.
Impact Analysis

This vulnerability can lead to heap corruption due to out-of-bounds writes occurring before the allocated buffer. Heap corruption can cause application crashes, instability, or potentially allow an attacker to execute arbitrary code or escalate privileges.

Since the vulnerability affects a component that processes OS identification data from agents, an attacker who can control or influence this input might exploit the flaw to compromise the Wazuh system.

The CVSS v3.1 base score is 6.5, indicating a medium severity with network attack vector, low attack complexity, requiring low privileges, no user interaction, and impacting availability.

Compliance Impact

The provided information does not specify any direct impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade Wazuh to version 4.14.4 or later, where the heap-based out-of-bounds write issue in parse_uname_string() has been patched.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-41499. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart