8.3high
CKAN: Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`
- Severity
- 8.3high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 1.82% (higher than 79% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-h7j7-3rx6-xvcgPYSEC-2026-2417
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| ckan ckan | >= 2.11.0, < 2.11.5, < 2.10.10 | CVE List |
| ckan (PyPI) | before 2.10.10, from 2.11.0 before 2.11.5 | GitHub Advisory Database, PyPA Advisory Database |
| okfn ckan | before 2.10.10, from 2.11.0 before 2.11.5 | NVD |
All scores
| GitHub_M | 8.3high CVSS:4.0 | 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 |
| GitHub | high CVSS:4.0 | 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 |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | Not scored CVSS:4.0 | 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 |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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, 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 plugin.
Credits
- Reported by Arvin Shivram of Brutecat Security
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42031 changed 2026-05-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-h7j7-3rx6-xvcg changed 2026-07-13 | CC-BY-4.0 |
| NVD | CVE-2026-42031 changed 2026-11-11 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2417 changed 2026-07-13 | CC-BY-4.0 |