Auth bypass in Clickhouse
CVE-2024-22412
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.
Vulnerability class: Broken Access Control
Published · last modified .
CVSS v3 metric
CVSS v3 base score 2.4 (Low). Vector: CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N.
EPSS exploit prediction
EPSS 0.006, 48.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Clickhouse — versions = 23.1, < 24.0.2.54535
- Clickhouse Cloud
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (adegoodyer/kubernetes-admin-toolkit, NaInSec/CVE-LIST). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/ClickHouse/ClickHouse/security/advisories/GHSA-45h5-f7g3-gr8r (Exploit, Vendor Advisory)
- https://github.com/ClickHouse/ClickHouse/pull/58611 (Patch, Issue Tracking)
- https://github.com/ClickHouse/ClickHouse/blob/bd17ee769e337906c4b1f404861e042ad72fcbfc/src/Interpreters/executeQuery.cpp#L1013-L1015 (Product)