{"id":"UBUNTU-CVE-2021-43305","details":"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. This issue is very similar to CVE-2021-43304, but the vulnerable copy operation is in a different wildCopy call.","modified":"2026-02-04T02:36:20.543628Z","published":"2022-03-14T23:15:00Z","related":["USN-6933-1"],"upstream":["CVE-2021-43305"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-43305"},{"type":"REPORT","url":"https://github.com/ClickHouse/ClickHouse/commit/2aea1c8d4a5be320365472052d8a48bf69fd9fe9"},{"type":"REPORT","url":"https://github.com/ClickHouse/ClickHouse/commit/6d83eacec42c7c403c99804a713a9d38caa4a45d"},{"type":"REPORT","url":"https://github.com/ClickHouse/ClickHouse/pull/27136"},{"type":"REPORT","url":"https://jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbms/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-43305"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-6933-1"}],"affected":[{"package":{"name":"clickhouse","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/clickhouse@18.16.1+ds-7ubuntu0.1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"18.16.1+ds-7ubuntu0.1"}]}],"versions":["18.16.1+ds-5","18.16.1+ds-5ubuntu1","18.16.1+ds-5ubuntu2","18.16.1+ds-6ubuntu1","18.16.1+ds-7"],"ecosystem_specific":{"binaries":[{"binary_name":"clickhouse-client","binary_version":"18.16.1+ds-7ubuntu0.1"},{"binary_name":"clickhouse-common","binary_version":"18.16.1+ds-7ubuntu0.1"},{"binary_name":"clickhouse-server","binary_version":"18.16.1+ds-7ubuntu0.1"},{"binary_name":"clickhouse-tools","binary_version":"18.16.1+ds-7ubuntu0.1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-43305.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}