{"id":"CVE-2024-22857","aliases":["CVE-2024-22857"],"related":[],"kind":"vulnerability","state":"published","title":"Heap based buffer flow in zlog v1.1.0 to v1.2.17 in zlogrulenew().The size of recordname is MAXLENPATH(1024) + 1 but filepath may have data…","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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).","source":"cvelist"},{"lang":"es","text":"zlog 1.2.16 tiene un desbordamiento de búfer de almacenamiento dinámico en la estructura zlog_rule_s mientras crea una nueva regla que ya está definida en el archivo de configuración proporcionado. Un usuario normal puede lograr la ejecución de código arbitrario.","source":"nvd"}],"published":"2024-03-07T00:00:00.000Z","modified":"2026-06-17T07:11:50.197Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-122"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"1.1.0","lastAffected":"1.2.17","status":"affected"}],"vendor":"zlog_project","product":"zlog","cpe":"cpe:2.3:a:zlog_project:zlog:*:*:*:*:*:*:*:*","source":"cvelist"}],"references":[{"url":"https://github.com/HardySimpson/zlog/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/HardySimpson/zlog/blob/1a7b1a6fb956b92a4079ccc91f30da21f34ca063/src/rule.h#L30","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.cybersecurity-help.cz/vdb/SB2024022842","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/HardySimpson/zlog/pull/251","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.ebryx.com/blogs/arbitrary-code-execution-in-zlog-cve-2024-22857","tags":["x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-08-27T17:51:23.417Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-22857","url":"https://www.cve.org/CVERecord?id=CVE-2024-22857","licence":"CVE Terms of Use","modified":"2024-08-27T19:45:25.342Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-22857","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22857","licence":"Public domain","modified":"2026-06-17T07:11:50.197Z"}],"updatedAt":"2026-11-25T22:58:37.316Z","epss":{"score":0.01685,"percentile":0.77688,"date":"2026-12-01T12:00:22.000Z"}}