Skip to content

CVE-2024-22412 ClickHouse's Role-based Access Control is bypassed when query caching is enabled.

MediumCVSS 4.9 EPSS 0.59%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
UbuntuDebian

Description

ClickHouse is an open-source column-oriented database management system. A bug exists in the cloud ClickHouse offering prior to version 24.0.2.54535 and in github.com/clickhouse/clickhouse version 23.1. Query caching bypasses the role based access controls and the policies being enforced on roles. In affected versions, the query cache only respects separate users, however this is not documented and not expected behavior. People relying on ClickHouse roles can have their access control lists bypassed if they are using query caching. Attackers who have control of a role could guess queries and see data they shouldn't have access to. Version 24.1 of ClickHouse and version 24.0.2.54535 of ClickHouse Cloud contain a patch for this issue. Based on the documentation, role based access control should be enforced regardless if query caching is enabled or not.

Upgrade path

5 packages: 2 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
debian/clickhouse(Debian 12) = 18.16.1+ds-7.3; = 18.16.1+ds-7.4; All versions No fix listed No fix yet
ubuntu/clickhouse(Ubuntu 20.04) = 18.16.1+ds-5; = 18.16.1+ds-5ubuntu1; = 18.16.1+ds-5ubuntu2; = 18.16.1+ds-6ubuntu1 +3 more No fix listed No fix yet
ubuntu/clickhouse(Ubuntu 24.04) = 18.16.1+ds-7.4; = 18.16.1+ds-7.4build1; = 18.16.1+ds-7.4build2; All versions No fix listed No fix yet
ClickHouse < 24.0.2.54535; = 23.1; = < 24.0.2.54535; = = 23.1 +4 more 23.3.22.3, 23.8.12.13, 23.12.6.19, 24.0.2.54535, 24.1.1.2048 Fixed
ClickHouse Cloud < 24.0.2.54535 24.0.2.54535 Fixed

Affected products

ProductAffected versionsFixed in
debian/clickhouse(Debian:12) All versions No fix listed
debian/clickhouse(Debian:12) = 18.16.1+ds-7.3 No fix listed
debian/clickhouse(Debian:12) = 18.16.1+ds-7.4 No fix listed
ClickHouse = = 23.1 No fix listed
ClickHouse = < 24.0.2.54535 No fix listed
ClickHouse < 24.0.2.54535 24.0.2.54535
ClickHouse = 23.1 No fix listed
ubuntu/clickhouse(Ubuntu:24.04) All versions No fix listed
ClickHouse >= 23.3.0.0, < 23.3.22.3 23.3.22.3
ClickHouse >= 23.8.0.0, < 23.8.12.13 23.8.12.13
ClickHouse >= 23.12.0.0, < 23.12.6.19 23.12.6.19
ClickHouse >= 24.0.0.0, < 24.1.1.2048 24.1.1.2048
ClickHouse Cloud < 24.0.2.54535 24.0.2.54535
ubuntu/clickhouse(Ubuntu:20.04) All versions No fix listed
ubuntu/clickhouse(Ubuntu:20.04) = 18.16.1+ds-5 No fix listed
ubuntu/clickhouse(Ubuntu:20.04) = 18.16.1+ds-5ubuntu1 No fix listed
ubuntu/clickhouse(Ubuntu:20.04) = 18.16.1+ds-5ubuntu2 No fix listed
ubuntu/clickhouse(Ubuntu:20.04) = 18.16.1+ds-6ubuntu1 No fix listed
ubuntu/clickhouse(Ubuntu:20.04) = 18.16.1+ds-7 No fix listed
ubuntu/clickhouse(Ubuntu:20.04) = 18.16.1+ds-7ubuntu0.1 No fix listed
ubuntu/clickhouse(Ubuntu:24.04) = 18.16.1+ds-7.4 No fix listed
ubuntu/clickhouse(Ubuntu:24.04) = 18.16.1+ds-7.4build1 No fix listed
ubuntu/clickhouse(Ubuntu:24.04) = 18.16.1+ds-7.4build2 No fix listed

References