{"answers":{"affected":"It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-22412 exists.","fix":"No fix has been published for CVE-2024-22412 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-22412 is a low-severity missing authorization vulnerability in ClickHouse, published on 18 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-22412 and fix it if it is affected.\n\nWhat it is: CVE-2024-22412 is a low-severity missing authorization vulnerability in ClickHouse, published on 18 Mar 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-22412 exists.\n\nAffected product: ClickHouse. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-22412/ (Markdown: https://insights.sbomify.com/CVE-2024-22412/index.md)","id":"CVE-2024-22412","markdown":"https://insights.sbomify.com/CVE-2024-22412/index.md","name":"CVE-2024-22412","record":{"aliases":["DEBIAN-CVE-2024-22412","ECHO-322b-5717-8504","GHSA-45h5-f7g3-gr8r","UBUNTU-CVE-2024-22412"],"analysis":{"component_type":"database","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"ClickHouse database","requires_auth":"high_privilege","summary":"Attackers with role control can bypass access controls and read unauthorized data when query caching is enabled in ClickHouse.","user_interaction":"not_required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"clickhouse","vendor":"clickhouse"},{"product":"clickhouse_cloud","vendor":"clickhouse"}],"cvss":{"score":2.4,"severity":"low","source":"cna","vector":"CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"ClickHouse's Role-based Access Control is bypassed when query caching is enabled.","id":"CVE-2024-22412","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"missing_authorization","year":"2024"},"n_packages":0,"n_references":3,"next":{"headline":"Further research determined the issue is not a vulnerability.","id":"CVE-2024-22413"},"packages":[],"prev":{"headline":"Cross site scripting in Action messages on Avo","id":"CVE-2024-22411"},"products":["ClickHouse"],"published":"2024-03-18","related":[{"cvss_score":9.8,"headline":"Memory corruption in ClickHouse","id":"CVE-2019-16535","kev_date_added":null,"published":"2019-12-30"},{"cvss_score":9.8,"headline":"Missing authorization in ClickHouse","id":"CVE-2018-14670","kev_date_added":null,"published":"2019-08-15"},{"cvss_score":9.8,"headline":"Code injection in ClickHouse","id":"CVE-2018-14671","kev_date_added":null,"published":"2019-08-15"},{"cvss_score":8.8,"headline":"Memory corruption in clickhouse","id":"CVE-2021-43304","kev_date_added":null,"published":"2022-03-14"},{"cvss_score":8.8,"headline":"Memory corruption in clickhouse","id":"CVE-2021-43305","kev_date_added":null,"published":"2022-03-14"},{"cvss_score":8.8,"headline":"Server-side request forgery in ClickHouse","id":"CVE-2018-14668","kev_date_added":null,"published":"2019-08-15"},{"cvss_score":8.2,"headline":"Stack overflow leading to DoS can be triggered by a malicious authenticated client.","id":"CVE-2019-16536","kev_date_added":null,"published":"2025-05-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-01","vendors":["ClickHouse"]},"summary":"Attackers with role control can bypass access controls and read unauthorized data when query caching is enabled in ClickHouse.","url":"https://insights.sbomify.com/CVE-2024-22412/"}