{"id":"CVE-2024-22857","sourceIdentifier":"cve@mitre.org","published":"2024-03-07T01:15:52.640","lastModified":"2026-06-17T07:11:50.197","vulnStatus":"Deferred","cveTags":[],"descriptions":[{"lang":"en","value":"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)."},{"lang":"es","value":"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."}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","affectedData":[{"vendor":"zlog_project","product":"zlog","defaultStatus":"unknown","cpes":["cpe:2.3:a:zlog_project:zlog:*:*:*:*:*:*:*:*"],"versions":[{"version":"1.1.0","lessThanOrEqual":"1.2.17","versionType":"custom","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2024-08-27T17:51:23.417587Z","id":"CVE-2024-22857","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","description":[{"lang":"en","value":"CWE-122"}]}],"references":[{"url":"https://github.com/HardySimpson/zlog/","source":"cve@mitre.org"},{"url":"https://github.com/HardySimpson/zlog/blob/1a7b1a6fb956b92a4079ccc91f30da21f34ca063/src/rule.h#L30","source":"cve@mitre.org"},{"url":"https://github.com/HardySimpson/zlog/pull/251","source":"cve@mitre.org"},{"url":"https://www.cybersecurity-help.cz/vdb/SB2024022842","source":"cve@mitre.org"},{"url":"https://www.ebryx.com/blogs/arbitrary-code-execution-in-zlog-cve-2024-22857","source":"cve@mitre.org"},{"url":"https://github.com/HardySimpson/zlog/","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/HardySimpson/zlog/blob/1a7b1a6fb956b92a4079ccc91f30da21f34ca063/src/rule.h#L30","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/HardySimpson/zlog/pull/251","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.cybersecurity-help.cz/vdb/SB2024022842","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.ebryx.com/blogs/arbitrary-code-execution-in-zlog-cve-2024-22857","source":"af854a3a-2127-422b-91ae-364da2661108"}]}