CVE-2024-22412

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

MEDIUM
4.9
CVSS Score
Published: March 18, 2024 at 08:51 PM UTC
Updated: June 17, 2026 at 07:11 AM UTC
2 products affected across 1 vendorClickHouseClickhouse Cloud

Using ClickHouse by ClickHouse?

Get instant alerts when new vulnerabilities affect ClickHouse - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.9
Exploit prediction
EPSS 0.6%
SSVC
PoC

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 24.0.2.5453523.12.0.0 ≤ v < 23.12.6.1923.3.0.0 ≤ v < 23.3.22.323.8.0.0 ≤ v < 23.8.12.1324.0.0.0 ≤ v < 24.1.1.204823.1= 23.1
Affected range stops below 24.0.2.54535, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
HIGH
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-863

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card