Vulnerability · Published Mar 18, 2024 · Assigned by GitHub_M
CVE-2024-22412ClickHouse's Role-based Access Control is bypassed when query caching is enabled.
Low 2.4
In plain English
A low-severity incorrect authorization in ClickHouse from ClickHouse. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities).
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | clickhouse | no fix listed | DEBIAN-CVE-2024-22412 |
| Ubuntu:24.04:LTS | clickhouse | no fix listed | UBUNTU-CVE-2024-22412 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| ClickHouse | ClickHouse | = 23.1< 24.0.2.54535 |
Weakness: CWE-863 · Vector: CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
References
- https://github.com/ClickHouse/ClickHouse/security/advisories/GHSA-45h5-f7g3-gr8r x_refsource_CONFIRM
- https://github.com/ClickHouse/ClickHouse/pull/58611 x_refsource_MISC
- https://github.com/ClickHouse/ClickHouse/blob/bd17ee769e337906c4b1f404861e042ad72fcbfc/src/Interpreters/executeQuery.cpp#L1013-L1015 x_refsource_MISC