ADVISORIES

PyPA Advisory Database

PYSEC-2026-2416

CKAN has Unauthenticated Authorization Bypass in `datastore_search_sql`

Details

Impact

A vulnerability in datastore_search_sql allowed attackers to bypass authorization 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 your DataStore and the likelihood of abuse of your site, you may choose to disable this action function or restrict its use with a IAuthFunctions plugin.

Credits

  • Reported by Arvin Shivram of Brutecat Security

Affected packages

EcosystemPackageAffected versions
PyPIckan
All versions before 2.10.10 (fixed in 2.10.10)
From 2.11.0 before 2.11.5 (fixed in 2.11.5)

References