CVE-2020-26759: Buffer Overflow in clickhouse-driver

clickhouse-driver Updated 02 Oct 2025

Summary

06/01/2021
Yes i
Critical
9.8

CVE-2020-26759: clickhouse-driver before 0.1.5 allows a malicious clickhouse server to trigger a crash or execute arbitrary code (on a database client) via a crafted server response, due to a buffer overflow. Affects clickhouse-driver across 3 version ranges.

< 0.1.5 < 3e990547e064b8fca916b23a0f7d6fe8c63c7f6b < d708ed548e1d6f254ba81a21de8ba543a53b5598

Fixed in d708ed548e1d6f254ba81a21de8ba543a53b5598. How to fix ↓

Also tracked for

The same CVE-2020-26759 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

clickhouse-driver is a Python package that provides a client library for connecting to ClickHouse, an open-source column-oriented database management system. It allows users to interact with ClickHouse databases and execute queries. However, versions prior to 0.1.5 of clickhouse-driver are vulnerable to a buffer overflow.

Vulnerability Detail

The vulnerability (CVE-2020-26759) in clickhouse-driver allows a malicious ClickHouse server to trigger a crash or execute arbitrary code on a database client. This can be achieved by sending a crafted server response that exploits a buffer overflow. The buffer overflow occurs due to improper handling of server responses by the client library. An attacker could potentially exploit this vulnerability to compromise the integrity and confidentiality of the client system.

How To Fix

Latest published version: 0.2.11 as of 22 Oct 2026

pip install --upgrade "clickhouse-driver==0.2.11"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

d708ed548e1d6f254ba81a21de8ba543a53b5598

This is the first release that contains the fix.

pip install --upgrade "clickhouse-driver==d708ed548e1d6f254ba81a21de8ba543a53b5598"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update to the patched version of clickhouse-driver to ensure the security of the client system.

Conclusion

The vulnerability (CVE-2020-26759) in clickhouse-driver allows a malicious ClickHouse server to trigger a crash or execute arbitrary code on a database client. It is crucial to update clickhouse-driver to version 0.1.5 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for clickhouse-driver →

Share this vulnerability

FAQ

clickhouse-driver is a Python package that provides a client library for connecting to ClickHouse databases.

This vulnerability allows a malicious ClickHouse server to crash the client or execute arbitrary code on the client system.

To fix this vulnerability, update clickhouse-driver to version 0.1.5 or later.

No, there is no known workaround. Updating to the patched version is necessary.

How To Fix

Latest published version: 0.2.11 as of 22 Oct 2026

pip install --upgrade "clickhouse-driver==0.2.11"

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

d708ed548e1d6f254ba81a21de8ba543a53b5598

This is the first release that contains the fix.

pip install --upgrade "clickhouse-driver==d708ed548e1d6f254ba81a21de8ba543a53b5598"

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback