CVE-2024-22412

LOW
Published Mar 18, 2024 Modified Dec 23, 2025 CWE-863

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 v3.1 Score

2.4
LOW
CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N

Weakness Type (CWE)

CWE-863 Incorrect Authorization

Affected Products

Vendor Product
clickhouse clickhouse
clickhouse clickhouse
clickhouse clickhouse
clickhouse clickhouse
clickhouse clickhouse_cloud

References

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. It has a CVSS v3.1 base score of 2.4 (LOW).
How severe is CVE-2024-22412? +
CVE-2024-22412 has a CVSS v3.1 score of 2.4 out of 10, rated LOW. This is a low-severity vulnerability with limited impact.
What products are affected by CVE-2024-22412? +
CVE-2024-22412 affects products from clickhouse, specifically: clickhouse, clickhouse_cloud. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-22412? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-22412 — free, no signup required.

Start Free Scan