CVE-2024-22412: ClickHouse is an open-source column-oriented database management system.
Medium CVSS 4.9
- CVE id
- CVE-2024-22412
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| ClickHouse Runtimes and servers |
>= 23.3.0.0, < 23.3.22.3 >= 23.8.0.0, < 23.8.12.13 >= 23.12.0.0, < 23.12.6.19 >= 24.0.0.0, < 24.1.1.2048 |
23.3.22.3, 23.8.12.13, 23.12.6.19, 24.1.1.2048 |
How to fix it
Upgrade ClickHouse to the fixed release of the line you run: 23.3.22.3, 23.8.12.13, 23.12.6.19, 24.1.1.2048.
clickhouse-server --version
- Install the patched ClickHouse release of your series (the clickhouse-server image tag or packages).
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2024-22412 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2024-22412
- Web: https://github.com/ClickHouse/ClickHouse/blob/bd17ee769e337906c4b1f404861e042ad72fcbfc/src/Interpreters/executeQuery.cpp#L1013-L1015
- Web: https://github.com/ClickHouse/ClickHouse/pull/58611
- Web: https://github.com/ClickHouse/ClickHouse/security/advisories/GHSA-45h5-f7g3-gr8r
- Web: https://github.com/ClickHouse/ClickHouse/blob/bd17ee769e337906c4b1f404861e042ad72fcbfc/src/Interpreters/executeQuery.cpp#L1013-L1015
- Web: https://github.com/ClickHouse/ClickHouse/pull/58611
- Web: https://github.com/ClickHouse/ClickHouse/security/advisories/GHSA-45h5-f7g3-gr8r
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.