CVE-2024-22412: ClickHouse - Broken Access Control
- Cve: CVE-2024-22412
- Name: ClickHouse - Broken Access Control
- 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.
- Impact: Attackers with control of a role can bypass access controls and view data they are not authorized to access.
- Remediation: Update to version 24.1 or 24.0.2.54535 of ClickHouse.
- Vulnerability type: broken_access_control
- Vulnerability impact: information_disclosure
- Requirement type: logged_in
- Requirements: Attacker needs control of a role
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.9
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00587
- Epss percentile: 0.48747
- Assignee: [email protected]
- Published at: 2024-03-18T21:15:06Z
- Age in days: 981
- Modified at: 2026-06-17T07:11:21Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-22412
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-863 | Incorrect Authorization |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/ClickHouse/ClickHouse/security/advisories/GHSA-45h5-f7g3-gr8r | nvd | 2024-03-18 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| clickhouse:clickhouse | >= 24.0.0.0, < 24.1.1.2048; >= 23.12.0.0, < 23.12.6.19; >= 23.8.0.0, < 23.8.12.13; >= 23.3.0.0, < 23.3.22.3 | no | nvd | /v1/products/clickhouse/clickhouse |
| clickhouse:clickhouse_cloud | < 24.0.2.54535 | no | nvd | /v1/products/clickhouse/clickhouse_cloud |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| clickhouse/clickhouse | pull, security_advisory | yes | /v1/repositories/clickhouse/clickhouse |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-03-18
- Remote: yes
- Authentication required: yes
- Exposed hosts: 17867
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports