Skip to content
OpenAdvisories
Low · 2.4 CVE-2024-22412 EUVD-2024-19964

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

Published Mar 18, 2024 · Updated Aug 1, 2024 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
ClickHouse ClickHouse = 23.1, < 24.0.2.54535 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 clickhouse No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS clickhouse No fix yet —
Ubuntu 20.04 LTS clickhouse No fix yet —

References