Advisory

PYSEC-2026-2416

Also known as: CVE-2026-42032, GHSA-cg4x-64p3-x59h

Summary

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

Severity

Not rated by the source.

Dates

Published
2026-07-13 15:02 UTC
Modified
2026-07-13 16:31 UTC

Affected packages and fixes

ckan

PyPI · All systems

Affected

  • introduced 0, fixed 2.10.10, introduced 2.11.0, fixed 2.11.5 (ecosystem)

Fixed versions

2.10.10, 2.11.5

Fix

  • Fixed version 2.10.10
    pip install --upgrade ckan==2.10.10
  • Fixed version 2.11.5
    pip install --upgrade ckan==2.11.5

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences