{ "dataType": "CVE_RECORD", "dataVersion": "5.1", "cveMetadata": { "state": "PUBLISHED", "cveId": "CVE-2024-22857", "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "assignerShortName": "mitre", "dateUpdated": "2024-08-27T19:45:25.342Z", "dateReserved": "2024-01-11T00:00:00.000Z", "datePublished": "2024-03-07T00:00:00.000Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "shortName": "mitre", "dateUpdated": "2024-04-19T00:02:37.435Z" }, "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)." } ], "affected": [ { "vendor": "n/a", "product": "n/a", "versions": [ { "version": "n/a", "status": "affected" } ] } ], "references": [ { "url": "https://github.com/HardySimpson/zlog/" }, { "url": "https://github.com/HardySimpson/zlog/blob/1a7b1a6fb956b92a4079ccc91f30da21f34ca063/src/rule.h#L30" }, { "url": "https://www.cybersecurity-help.cz/vdb/SB2024022842" }, { "url": "https://github.com/HardySimpson/zlog/pull/251" }, { "url": "https://www.ebryx.com/blogs/arbitrary-code-execution-in-zlog-cve-2024-22857" } ], "problemTypes": [ { "descriptions": [ { "type": "text", "lang": "en", "description": "n/a" } ] } ] }, "adp": [ { "providerMetadata": { "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2024-08-01T22:51:11.161Z" }, "title": "CVE Program Container", "references": [ { "url": "https://github.com/HardySimpson/zlog/", "tags": [ "x_transferred" ] }, { "url": "https://github.com/HardySimpson/zlog/blob/1a7b1a6fb956b92a4079ccc91f30da21f34ca063/src/rule.h#L30", "tags": [ "x_transferred" ] }, { "url": "https://www.cybersecurity-help.cz/vdb/SB2024022842", "tags": [ "x_transferred" ] }, { "url": "https://github.com/HardySimpson/zlog/pull/251", "tags": [ "x_transferred" ] }, { "url": "https://www.ebryx.com/blogs/arbitrary-code-execution-in-zlog-cve-2024-22857", "tags": [ "x_transferred" ] } ] }, { "problemTypes": [ { "descriptions": [ { "type": "CWE", "cweId": "CWE-122", "lang": "en", "description": "CWE-122 Heap-based Buffer Overflow" } ] } ], "affected": [ { "vendor": "zlog_project", "product": "zlog", "cpes": [ "cpe:2.3:a:zlog_project:zlog:*:*:*:*:*:*:*:*" ], "defaultStatus": "unknown", "versions": [ { "version": "1.1.0", "status": "affected", "lessThanOrEqual": "1.2.17", "versionType": "custom" } ] } ], "metrics": [ { "cvssV3_1": { "scope": "UNCHANGED", "version": "3.1", "baseScore": 9.8, "attackVector": "NETWORK", "baseSeverity": "CRITICAL", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "NONE", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "NONE", "confidentialityImpact": "HIGH" } }, { "other": { "type": "ssvc", "content": { "timestamp": "2024-08-27T17:51:23.417587Z", "id": "CVE-2024-22857", "options": [ { "Exploitation": "poc" }, { "Automatable": "no" }, { "Technical Impact": "total" } ], "role": "CISA Coordinator", "version": "2.0.3" } } } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2024-08-27T19:45:25.342Z" } } ] } }