{"id":"CVE-2021-43304","aliases":["DEBIAN-CVE-2021-43304","DLA-3176-1","EUVD-2021-30247","GHSA-4px5-4p3v-7568"],"status":"published","title":"Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query. There...","description":"Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query. There is no verification that the copy operations in the LZ4::decompressImpl loop and especially the arbitrary copy operation wildCopy\u003ccopy_amount\u003e(op, ip, copy_end), don’t exceed the destination buffer’s limits.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-12","score":0.01672,"percentile":0.77153,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-122","CWE-787"],"published":"2022-03-14T00:00:00Z","modified":"2026-10-24T10:30:47Z","fixes":[{"ecosystem":"Debian:12","package":"clickhouse","fixed_in":["18.16.1+ds-7.3"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"clickhouse","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"18.16.1+ds-7.3"}]}]},{"source":"osv","ecosystem":"Debian:10","package":"clickhouse","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"18.16.1+ds-4+deb10u1"}]}],"versions":["18.16.1+ds-4"],"bundled":4}],"products":[{"vendor":"clickhouse","product":"clickhouse"},{"vendor":"debian","product":"debian_linux"},{"vendor":"yandex","product":"clickhouse"}],"references":[{"url":"https://jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbms","tags":["x_transferred","Exploit","Third Party Advisory","evidence"]},{"url":"https://lists.debian.org/debian-lts-announce/2022/11/msg00002.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-43304"},{"url":"https://github.com/advisories/GHSA-4px5-4p3v-7568"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-43304","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2021-43304","description":"Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query. There is no verification that the copy operations in the LZ4::decompressImpl loop and especially the arbitrary copy operation wildCopy\u003ccopy_amount\u003e(op, ip, copy_end), don’t exceed the destination buffer’s limits.","status":"published","published":"2022-03-14T00:00:00Z","modified":"2024-08-04T03:55:28.381Z","cwes":["CWE-122"],"updated_at":"2026-11-02T14:32:57.033395Z"}],"euvd":[{"id":"EUVD-2021-30247","description":"Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query. There is no verification that the copy operations in the LZ4::decompressImpl loop and especially the arbitrary copy operation wildCopy\u003ccopy_amount\u003e(op, ip, copy_end), don’t exceed the destination buffer’s limits.","status":"published","published":"2022-03-14T00:00:00Z","modified":"2024-08-04T03:55:28Z","updated_at":"2026-11-03T03:24:14.245608Z"}],"ghsa":[{"id":"GHSA-4px5-4p3v-7568","title":"Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query. There...","description":"Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query. There is no verification that the copy operations in the LZ4::decompressImpl loop and especially the arbitrary copy operation wildCopy\u003ccopy_amount\u003e(op, ip, copy_end), don’t exceed the destination buffer’s limits.","status":"published","published":"2022-03-16T00:00:49Z","modified":"2025-06-25T21:30:30Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-122","CWE-787"],"updated_at":"2026-11-02T15:02:48.872885Z"}],"nvd":[{"id":"CVE-2021-43304","description":"Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query. There is no verification that the copy operations in the LZ4::decompressImpl loop and especially the arbitrary copy operation wildCopy\u003ccopy_amount\u003e(op, ip, copy_end), don’t exceed the destination buffer’s limits.","status":"published","published":"2022-03-14T23:15:08.157Z","modified":"2026-06-17T04:10:49.297Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":6.5,"vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-122","CWE-787"],"updated_at":"2026-11-02T14:07:05.198719Z"}],"osv":[{"id":"CVE-2021-43304","description":"Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query. There is no verification that the copy operations in the LZ4::decompressImpl loop and especially the arbitrary copy operation wildCopy\u003ccopy_amount\u003e(op, ip, copy_end), don’t exceed the destination buffer’s limits.","status":"published","published":"2022-03-14T23:15:08.157Z","modified":"2026-10-24T10:30:47.270877062Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:21.877444Z"},{"id":"DEBIAN-CVE-2021-43304","description":"Heap buffer overflow in Clickhouse's LZ4 compression codec when parsing a malicious query. There is no verification that the copy operations in the LZ4::decompressImpl loop and especially the arbitrary copy operation wildCopy\u003ccopy_amount\u003e(op, ip, copy_end), don’t exceed the destination buffer’s limits.","status":"published","published":"2022-03-14T23:15:08.157Z","modified":"2026-10-23T18:04:38.74444337Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:35.799676Z"},{"id":"DLA-3176-1","title":"clickhouse - security update","status":"published","published":"2022-11-03T00:00:00Z","modified":"2026-03-09T01:20:25.107353Z","updated_at":"2026-11-02T15:46:11.189256Z"}]}}
