CVE-2026-42031
JSON

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 packageVersionsReported by
ckan ckan>= 2.11.0, < 2.11.5, < 2.10.10CVE List
ckan (PyPI)before 2.10.10, from 2.11.0 before 2.11.5GitHub Advisory Database, PyPA Advisory Database
okfn ckanbefore 2.10.10, from 2.11.0 before 2.11.5NVD

All scores

GitHub_M8.3high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS: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

CWE-89CWE-863

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

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

SourceRecordLicence
CVE ListCVE-2026-42031 changed 2026-05-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-h7j7-3rx6-xvcg changed 2026-07-13CC-BY-4.0
NVDCVE-2026-42031 changed 2026-11-11Public domain
PyPA Advisory DatabasePYSEC-2026-2417 changed 2026-07-13CC-BY-4.0