# CVE-2021-42389: Divide-by-zero in Clickhouse's Delta compression codec when parsing a malicious query.

- Severity: Medium 6.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.26%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-03-14T22:20:30.000Z
- Modified: 2026-06-17T04:09:45.090Z
- Weaknesses: CWE-369
- Assigned by: JFROG

## Description

Divide-by-zero in Clickhouse's Delta compression codec when parsing a malicious query. The first byte of the compressed buffer is used in a modulo operation without being checked for 0.

(As written by CVE List.)

## Affected

- yandex clickhouse: from unspecified before 21.10.2.15-stable
- clickhouse clickhouse: before 21.10.2.15

## Every score

- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`

## References

- <https://jfrog.com/blog/7-rce-and-dos-vulnerabilities-found-in-clickhouse-dbms> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-42389](https://www.cve.org/CVERecord?id=CVE-2021-42389), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-42389](https://nvd.nist.gov/vuln/detail/CVE-2021-42389), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-42389 · Whole record: https://cve.day/CVE-2021-42389.json · Rebuilt by cve.day 2026-11-25T22:58:07.193Z
