CVE-2020-26759: Arbitrary code execution in clickhouse-driver

clickhouse-driver Updated 02 Oct 2025

Summary

07/04/2021
Yes i
Critical
9.8

CVE-2020-26759: Arbitrary code execution in clickhouse-driver. Affects clickhouse-driver versions < 0.1.5. Fixed in 0.1.5. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

clickhouse-driver is a Python package that provides a client library for interacting with ClickHouse, an open-source column-oriented database management system. It allows users to connect to a ClickHouse server and execute queries. The vulnerability identified as CVE-2020-26759 can be exploited by a malicious ClickHouse server to trigger a crash or execute arbitrary code on a client machine. This vulnerability arises due to a buffer overflow in clickhouse-driver before version 0.1.5.

Vulnerability Detail

The vulnerability in clickhouse-driver allows a malicious ClickHouse server to send a specially crafted response that triggers a buffer overflow on the client-side. This can lead to a crash of the client application or enable the execution of arbitrary code. The buffer overflow occurs in the following functions: clickhouse_driver.bufferedreader.BufferedReader, clickhouse_driver.bufferedreader.BufferedReader.read, clickhouse_driver.bufferedreader.BufferedReader.read_strings, clickhouse_driver.bufferedwriter.BufferedWriter, clickhouse_driver.bufferedwriter.BufferedWriter.init, and clickhouse_driver.bufferedwriter.BufferedWriter.write. The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).

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

0.1.5

This is the first release that contains the fix.

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

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 crucial to update to the fixed version of clickhouse-driver to ensure the security of the application.

Conclusion

The vulnerability in clickhouse-driver (CVE-2020-26759) exposes users to the risk of arbitrary code execution or application crashes. To mitigate this risk, it is essential to upgrade to clickhouse-driver version 0.1.5 or later. This upgrade includes the necessary patches to prevent the buffer overflow. 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 interacting with ClickHouse, an open-source column-oriented database management system.

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

The severity of this vulnerability is rated as CRITICAL with a CVSS score of 9.8.

To fix this vulnerability, it is recommended to upgrade clickhouse-driver to version 0.1.5 or later.

There is no known workaround for this vulnerability. It is crucial to update to the fixed version of clickhouse-driver.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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

0.1.5

This is the first release that contains the fix.

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

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