CVE-2024-22412

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-22412
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-22412.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-22412
Aliases
  • GHSA-45h5-f7g3-gr8r
Downstream
Published
2024-03-18T20:51:40Z
Modified
2025-10-21T02:35:38Z
Severity
  • 2.4 (Low) CVSS_V3 - CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
ClickHouse's Role-based Access Control is bypassed when query caching is enabled.
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

Affected packages

Git /

Affected ranges

Database specific

unresolved_versions

[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "= 23.1"
            }
        ],
        "type": ""
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "fixed": "24.0.2.54535"
            }
        ],
        "type": ""
    }
]