Vulnerabilities · 2024 · Clickhouse
CVE-2024-22412
Clickhouse vulnerability
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.
Affected products
Clickhouse, Clickhouse Cloud. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Clickhouse runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/ClickHouse/ClickHouse/security/advisories/GHSA-45h5-f7g3-gr8r · Vendor Advisory
- github.com/ClickHouse/ClickHouse/pull/58611 · Patch
- github.com/ClickHouse/ClickHouse/blob/bd17ee769e337906c4b1f404861e042ad72fcbfc/src/Interpr
- nvd.nist.gov/vuln/detail/CVE-2024-22412
- cve.org/CVERecord?id=CVE-2024-22412
More vulnerabilities in Clickhouse products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.