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

- Severity: Low 2.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.59%, higher than 49% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-03-18T20:51:40.313Z
- Modified: 2026-06-17T07:11:21.670Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- ClickHouse ClickHouse: = 23.1; < 24.0.2.54535; before 24.0.2.54535; 23.1; from 23.3.0.0 before 23.3.22.3; from 23.8.0.0 before 23.8.12.13; from 23.12.0.0 before 23.12.6.19; from 24.0.0.0 before 24.1.1.2048
- clickhouse clickhouse_cloud: before 24.0.2.54535

## Every score

- GitHub_M: CVSS:3.1 2.4 Low `CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 4.9 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/ClickHouse/ClickHouse/security/advisories/GHSA-45h5-f7g3-gr8r> (exploit, vendor-advisory)
- <https://github.com/ClickHouse/ClickHouse/pull/58611> (issue-tracking, patch)
- <https://github.com/ClickHouse/ClickHouse/blob/bd17ee769e337906c4b1f404861e042ad72fcbfc/src/Interpreters/executeQuery.cpp#L1013-L1015> (product)

## Sources

- CVE List: [CVE-2024-22412](https://www.cve.org/CVERecord?id=CVE-2024-22412), CVE Terms of Use, modified 2024-08-01
- NVD: [CVE-2024-22412](https://nvd.nist.gov/vuln/detail/CVE-2024-22412), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-22412 · Whole record: https://cve.day/CVE-2024-22412.json · Rebuilt by cve.day 2026-11-25T22:58:37.687Z
