All reports
High

CKAN has Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`

Affected versions

Version ranges need review.

PyPIckan
Affected versions
< 2.10.10
Fixed version
2.10.10
PyPIckan
Affected versions
>= 2.11.0, <= 2.11.4
Fixed version
2.11.5
PyPIckan
Affected versions
<2.10.10 || >=2.11.0 <2.11.5
Fixed version
2.10.10 · 2.11.5

Exploitation

CVE-2026-42031

Probability of exploitation in the next 30 days: 1.82%

FIRST EPSS · 2026-11-21

Description

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

Links

Credits

  • ddd