Skip to main content
Public proof of conceptFix available

CVE-2024-22412

A public proof of concept exists; no exploitation attested.

  • Published2024-03-18
  • Fixed in24.1.1.2048 · 24.0.2.54535 · 23.12.6.19 · 23.8.12.13 · 23.3.22.3
  • WeaknessCWE-863

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-03-1821:15CVE publishedNVD

Versions per branch

NVD · CISA-ADP
Clickhouse
BranchAffectedFixed in
24.x≥ 24.0.0.0, < 24.1.1.204824.1.1.2048
24.0< 24.0.2.5453524.0.2.54535
23.12≥ 23.12.0.0, < 23.12.6.1923.12.6.19
23.8≥ 23.8.0.0, < 23.8.12.1323.8.12.13
23.3≥ 23.3.0.0, < 23.3.22.323.3.22.3
23.1= 23.1no fix published
Clickhouse clickhouse cloud
BranchAffectedFixed in
24.0< 24.0.2.5453524.0.2.54535

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • ClickHouse
    Affected
    • = = 23.1no fix stated
    • = < 24.0.2.54535no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2024-03-18

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • clickhouseUbuntu:24.04:LTSall versions · no fixed version listed
  • clickhouseUbuntu:20.04:LTSall versions · no fixed version listed
  • clickhouseEchoall versions · no fixed version listed
  • clickhouseDebian:12all versions · no fixed version listed

Full record on NVD

Fix

  1. Update Clickhouse to 24.1.1.2048 · 24.0.2.54535 · 23.12.6.19 · 23.8.12.13 · 23.3.22.3

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2024-07-16
  • CNACVSS 3.12.4known since 2026-10-23
  • NVDCVSS 3.14.9read 2026-10-23
  • CNAweakness (CWE)CWE-863known since 2026-10-23
  • FIRST EPSSEPSS score0.6 %2026-11-08
  • OSVaffected packages—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
Published
2024-03-18
Last Modified
2026-06-17
NVD status
Analyzed

Frequently asked questions

What is 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.

Is CVE-2024-22412 actively exploited?

A proof-of-concept exploit exists for CVE-2024-22412, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2024-22412?

CVE-2024-22412 has a CVSS v3 base score of 4.9 (MEDIUM severity), with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N.

Running clickhouse? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record