{"id":"CVE-2026-41499","summary":"Wazuh: Multiple Heap-based NULL WRITE Buffer Underflows in parse_uname_string()","details":"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.","aliases":["GHSA-qvqj-p8mm-r7h3"],"modified":"2026-07-15T01:49:14.492690602Z","published":"2026-04-29T18:01:25.078Z","database_specific":{"cwe_ids":["CWE-124","CWE-191"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41499.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://github.com/wazuh/wazuh/releases/tag/v4.14.4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41499.json"},{"type":"ADVISORY","url":"https://github.com/wazuh/wazuh/security/advisories/GHSA-qvqj-p8mm-r7h3"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41499"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/wazuh/wazuh","events":[{"introduced":"8c2c62a6e9dcbcf2c792f7924e8cfdb26842820b"},{"fixed":"5933ec9ebee76fb2546e5f7fc9f3a27d0aeca605"}],"database_specific":{"cpe":"cpe:2.3:a:wazuh:wazuh:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"4.0.0"},{"fixed":"4.14.4"}],"source":["AFFECTED_FIELD","CPE_RANGE","REFERENCES"]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-41499.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}