CVE-2024-22857
CWE-122Published: March 7, 2024· Updated: Jun 17, 2026
Official Description
Heap based buffer flow in zlog v1.1.0 to v1.2.17 in zlog_rule_new().The size of record_name is MAXLEN_PATH(1024) + 1 but file_path may have data upto MAXLEN_CFG_LINE(MAXLEN_PATH*4) + 1. So a check was missing in zlog_rule_new() while copying the record_name from file_path + 1 which caused the buffer overflow. An attacker can exploit this vulnerability to overwrite the zlog_record_fn record_func function pointer to get arbitrary code execution or potentially cause remote code execution (RCE).
Risk Analysis
The zlog library contains a heap-based buffer overflow in the zlog_rule_new function due to insufficient size checks. An attacker can exploit this to overwrite function pointers and achieve remote code execution, warranting a critical CVSS score of 9.8. No active exploitation is currently known.
This vulnerability is remotely exploitable, but there is no known public exploit and it is not in the CISA KEV.
Apply patches provided by the zlog maintainers to fix the buffer overflow in the rule parsing logic.
Technical Analysis
CVE-2024-22857 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
The vulnerability requires no privileges and no user interaction, making it a prime target for automated exploitation campaigns and worm-like propagation.
A successful exploit results in complete confidentiality breach (data exposure), full integrity compromise (data manipulation), availability disruption (denial of service), with a CVSS base score of 9.8.
CVSS v3.1 Vector Breakdown
Exploit & PoC Resources
All References (10)
Quick Facts
Related CVEs (CWE-122)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2024-22857 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts