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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:clickhouse:clickhouse:*:*:*:*:*:*:*:*
cpe:2.3:a:clickhouse:clickhouse:*:*:*:*:*:*:*:*
cpe:2.3:a:clickhouse:clickhouse:*:*:*:*:*:*:*:*
cpe:2.3:a:clickhouse:clickhouse:*:*:*:*:*:*:*:*
cpe:2.3:a:clickhouse:clickhouse_cloud:*:*:*:*:*:*:*:*

History

23 Dec 2025, 19:42

Type Values Removed Values Added
First Time Clickhouse clickhouse Cloud
Clickhouse
Clickhouse clickhouse
CPE cpe:2.3:a:clickhouse:clickhouse:*:*:*:*:*:*:*:*
cpe:2.3:a:clickhouse:clickhouse_cloud:*:*:*:*:*:*:*:*
References () https://github.com/ClickHouse/ClickHouse/blob/bd17ee769e337906c4b1f404861e042ad72fcbfc/src/Interpreters/executeQuery.cpp#L1013-L1015 - () https://github.com/ClickHouse/ClickHouse/blob/bd17ee769e337906c4b1f404861e042ad72fcbfc/src/Interpreters/executeQuery.cpp#L1013-L1015 - Product
References () https://github.com/ClickHouse/ClickHouse/pull/58611 - () https://github.com/ClickHouse/ClickHouse/pull/58611 - Issue Tracking, Patch
References () https://github.com/ClickHouse/ClickHouse/security/advisories/GHSA-45h5-f7g3-gr8r - () https://github.com/ClickHouse/ClickHouse/security/advisories/GHSA-45h5-f7g3-gr8r - Vendor Advisory, Exploit

21 Nov 2024, 08:56

Type Values Removed Values Added
References () https://github.com/ClickHouse/ClickHouse/blob/bd17ee769e337906c4b1f404861e042ad72fcbfc/src/Interpreters/executeQuery.cpp#L1013-L1015 - () https://github.com/ClickHouse/ClickHouse/blob/bd17ee769e337906c4b1f404861e042ad72fcbfc/src/Interpreters/executeQuery.cpp#L1013-L1015 -
References () https://github.com/ClickHouse/ClickHouse/pull/58611 - () https://github.com/ClickHouse/ClickHouse/pull/58611 -
References () https://github.com/ClickHouse/ClickHouse/security/advisories/GHSA-45h5-f7g3-gr8r - () https://github.com/ClickHouse/ClickHouse/security/advisories/GHSA-45h5-f7g3-gr8r -

18 Mar 2024, 21:15

Type Values Removed Values Added
New CVE

Information

Published : 2024-03-18 21:15

Updated : 2025-12-23 19:42


NVD link : CVE-2024-22412

Mitre link : CVE-2024-22412

CVE.ORG link : CVE-2024-22412


JSON object : View

Products Affected

clickhouse

  • clickhouse
  • clickhouse_cloud
CWE
CWE-863

Incorrect Authorization