CKAN has Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`
### Impact A vulnerability in `datastore_search_sql` allowed attackers to inject SQL in order to gain access to private resources and PostgreSQL system information. ### Patches The issue has been patched in CKAN 2.10.10 and CKAN 2.11.5 ### Workarounds Disable the DataStore SQL search (`ckan.datastore.sqlsearch.enabled = false`). Note that the SQL search is disabled by default. ### More information As 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. ### Credits * Reported by Arvin Shivram of Brutecat Security
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2026-42031US | critical9.8OT high | Exploit | ||
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… | ||||
references
External citations — patches, advisories, analysis.
- https://docs.ckan.org/en/2.10/changelog.html#v-2-10-10-2026-04-29WEB
- https://docs.ckan.org/en/2.11/changelog.html#v-2-11-5-2026-04-29WEB
- https://docs.ckan.org/en/2.11/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IAuthFunctionsWEB
- https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-datastore-sqlsearch-enabledWEB
- https://github.com/advisories/GHSA-h7j7-3rx6-xvcgADVISORY
- https://github.com/ckan/ckanPACKAGE
- https://github.com/ckan/ckan/security/advisories/GHSA-h7j7-3rx6-xvcgWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-42031ADVISORY
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan