CVE-2024-22412

MEDIUM EPSS 43.7%
Published Mar 18, 20242y ago · Modified Jun 17, 20262w ago
4.9 CVSS 3.1
Medium
Find Similar
Published Mar 18, 2024 2y ago
Last Modified Jun 17, 2026 2w ago

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.

CVSS Details

Base Score
4.9
Exploitability
1.2
Impact
3.6
Vector string
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Attack Vector Network
Attack Complexity Low
Privileges Required High
User Interaction None
Scope Unchanged
Confidentiality High
Integrity None
Availability None

Threat Intelligence

EPSS Exploit Probability
43.7% percentile
Exploit & Patch Status
Public Exploit Known
Patch Available

Weaknesses 1

CWE-863 Incorrect Authorization Authorization

Affected Products 5

VendorProductVersionRange
clickhouseclickhouse*≥23.3.0.0  –  <23.3.22.3
clickhouseclickhouse*≥23.8.0.0  –  <23.8.12.13
clickhouseclickhouse*≥23.12.0.0  –  <23.12.6.19
clickhouseclickhouse*≥24.0.0.0  –  <24.1.1.2048
clickhouseclickhouse_cloud* <24.0.2.54535

References 3

  • github.com https://github.com/ClickHouse/ClickHouse/blob/bd17ee769e337906c4b1f404861e042ad72fcbfc/src/Interpreters/executeQuery.cpp#L1013-L1015
    Product
  • github.com https://github.com/ClickHouse/ClickHouse/pull/58611
    Issue TrackingPatch
  • github.com https://github.com/ClickHouse/ClickHouse/security/advisories/GHSA-45h5-f7g3-gr8r
    ExploitVendor Advisory

Remediation

  • github.com https://github.com/ClickHouse/ClickHouse/pull/58611
    Issue TrackingPatch