CVE-2024-22412 | ClickHouse's Role-based Access Control is bypassed when query caching is enabled.

Exp

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.

Published: 2024-03-18 Last update: 2025-12-23 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2024-22412 is rated Exploit Available (50/100): CVSS Low severity, with low exploitation likelihood (EPSS 0.10%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2024-22412

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2024-22412

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2025-12-24 0.01% 0.10% +0.09%
2 2025-11-21 0.07% 0.01% -0.06%
3 2025-11-18 0.07%

Full EPSS history (6 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2024-22412

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
2.4 3.1 LOW
CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N Click to expand
Attack vector (AV:A)
Attacker has to be nearby on the network—same office, same link, that vibe—not the whole wide internet.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:H)
They need powerful rights—admin, root, or similar—before this pays off.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
0.9 1.4 [email protected]
4.9 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:H)
They need powerful rights—admin, root, or similar—before this pays off.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
1.2 3.6 [email protected]

Weakness enumeration for CVE-2024-22412

OS Trackers for CVE-2024-22412

vendor priority summary link
debian not yet assigned CVE-2024-22412 not yet assigned priority: Debian including 1 source packages (clickhouse), 2 status rows across 2 suites (bookworm, bullseye): open 2. https://security-tracker.debian.org/tracker/CVE-2024-22412
ubuntu medium CVE-2024-22412 medium priority: Ubuntu including 1 source packages (clickhouse), 7 status rows across 7 suites (focal, jammy, noble, oracular, plucky, questing, upstream): DNE 4, needs-triage 3. https://ubuntu.com/security/CVE-2024-22412

Affected software / configurations for CVE-2024-22412

Vendor Product Version Raw CPE
clickhouse clickhouse >= 23.3.0.0, < 23.3.22.3 cpe:2.3:a:clickhouse:clickhouse:*:*:*:*:*:*:*:*
clickhouse clickhouse >= 23.8.0.0, < 23.8.12.13 cpe:2.3:a:clickhouse:clickhouse:*:*:*:*:*:*:*:*
clickhouse clickhouse >= 23.12.0.0, < 23.12.6.19 cpe:2.3:a:clickhouse:clickhouse:*:*:*:*:*:*:*:*
clickhouse clickhouse >= 24.0.0.0, < 24.1.1.2048 cpe:2.3:a:clickhouse:clickhouse:*:*:*:*:*:*:*:*
clickhouse clickhouse_cloud < 24.0.2.54535 cpe:2.3:a:clickhouse:clickhouse_cloud:*:*:*:*:*:*:*:*

References for CVE-2024-22412

cvelogic Threat Intelligence