{"id":"CVE-2026-42031","aliases":["CVE-2026-42031","GHSA-h7j7-3rx6-xvcg","PYSEC-2026-2417"],"related":[],"kind":"vulnerability","state":"published","title":"CKAN: Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA vulnerability in `datastore_search_sql` allowed attackers to inject SQL in order to gain access to private resources and PostgreSQL system information.\n\n### Patches\nThe issue has been patched in CKAN 2.10.10 and CKAN 2.11.5\n\n### Workarounds\nDisable the DataStore SQL search (`ckan.datastore.sqlsearch.enabled = false`). Note that the SQL search is disabled by default.\n\n### More information\n\nAs stated in the [documentation](https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-datastore-sqlsearch-enabled), this action function has protections that offer some safety but are not designed to prevent all types of abuse. Depending on the sensitivity of private data in a project's DataStore and the likelihood of abuse of a consuming site, a developer may choose to disable this action function or restrict its use with a [`IAuthFunctions`](https://docs.ckan.org/en/2.11/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IAuthFunctions) plugin.\n\n### Credits\n\n* Reported by Arvin Shivram of Brutecat Security","format":"markdown","source":"ghsa"},{"lang":"es","text":"CKAN es un DMS (sistema de gestión de datos) de código abierto para impulsar centros de datos y portales de datos. Antes de las versiones 2.10.10 y 2.11.5, una vulnerabilidad en datastore_search_sql permitía a los atacantes inyectar SQL para obtener acceso a recursos privados e información del sistema de PostgreSQL. Esta vulnerabilidad está corregida en las versiones 2.10.10 y 2.11.5.","source":"nvd"}],"published":"2026-04-29T23:11:21.000Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":8.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-89","CWE-863"],"affected":[{"ranges":[{"version":">= 2.11.0, < 2.11.5","status":"affected"},{"version":"< 2.10.10","status":"affected"}],"vendor":"ckan","product":"ckan","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.10.10"}],"ecosystem":"PyPI","package":"ckan","purl":"pkg:pypi/ckan","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.11.0","status":"affected","fixed":"2.11.5"}],"ecosystem":"PyPI","package":"ckan","purl":"pkg:pypi/ckan","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.10.10"},{"status":"affected","introduced":"2.11.0","fixed":"2.11.5"}],"vendor":"okfn","product":"ckan","cpe":"cpe:2.3:a:okfn:ckan:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.10.10"},{"type":"ecosystem","introduced":"2.11.0","status":"affected","fixed":"2.11.5"}],"ecosystem":"PyPI","package":"ckan","purl":"pkg:pypi/ckan","source":"pysec"}],"references":[{"url":"https://github.com/ckan/ckan/security/advisories/GHSA-h7j7-3rx6-xvcg","tags":["mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42031","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://docs.ckan.org/en/2.10/changelog.html#v-2-10-10-2026-04-29","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://docs.ckan.org/en/2.11/changelog.html#v-2-11-5-2026-04-29","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://docs.ckan.org/en/2.11/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IAuthFunctions","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-datastore-sqlsearch-enabled","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ckan/ckan","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/ckan","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-h7j7-3rx6-xvcg","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"total","date":"2026-05-15T19:12:40.399Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42031","url":"https://www.cve.org/CVERecord?id=CVE-2026-42031","licence":"CVE Terms of Use","modified":"2026-05-15T19:15:58.374Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h7j7-3rx6-xvcg","url":"https://github.com/advisories/GHSA-h7j7-3rx6-xvcg","licence":"CC-BY-4.0","modified":"2026-07-13T16:43:19.519Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42031","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42031","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2417","url":"https://osv.dev/vulnerability/PYSEC-2026-2417","licence":"CC-BY-4.0","modified":"2026-07-13T16:31:32.602Z"}],"updatedAt":"2026-11-25T22:59:21.635Z","epss":{"score":0.01817,"percentile":0.79333,"date":"2026-12-01T12:00:22.000Z"}}