{"id":"CVE-2026-42031","summary":"CKAN: Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`","details":"CKAN is an open-source DMS (data management system) for powering data hubs and data portals. Prior to 2.10.10 and 2.11.5, a vulnerability in datastore_search_sql allowed attackers to inject SQL in order to gain access to private resources and PostgreSQL system information This vulnerability is fixed in 2.10.10 and 2.11.5.","aliases":["GHSA-h7j7-3rx6-xvcg"],"modified":"2026-07-08T08:13:13.361281470Z","published":"2026-05-13T18:52:35.383Z","database_specific":{"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42031.json","cwe_ids":["CWE-89"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42031.json"},{"type":"ADVISORY","url":"https://github.com/ckan/ckan/security/advisories/GHSA-h7j7-3rx6-xvcg"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42031"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/ckan/ckan","events":[{"introduced":"0"},{"fixed":"f826af9c66ce98c7f274a58b0b95f6925f1eb351"},{"introduced":"710dfff718859ff284f0e9feee70c1ecfc86677a"},{"fixed":"69f790d9e37805827f513a78e586ac54be91a6b9"}],"database_specific":{"source":"CPE_RANGE","cpe":"cpe:2.3:a:okfn:ckan:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.10.10"},{"introduced":"2.11.0"},{"fixed":"2.11.5"}]}}],"versions":["ckan-2.11.4","ckan-2.10.9","ckan-2.11.3","ckan-2.10.8","ckan-2.11.2","ckan-2.10.7","ckan-2.10.6","ckan-2.11.1","ckan-2.11.0","ckan-2.10.5","ckan-2.10.4","ckan-2.10.3","ckan-2.10.2","ckan-2.10.0","ckan-1.5","ckan-1.4.3","ckan-1.3.3b"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42031.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N"}]}