CVE-2026-42032: CKAN authorization bypass in datastore_search_sql

CVE-2026-42032 · Severity: medium · CVSS 4 · Published 2026-05-13

CKAN is an open-source data portal platform used by governments and organizations to share data. A security flaw in its SQL search feature allows unauthorized users to bypass security checks and access private data or internal database information. This could lead to the exposure of sensitive datasets that were intended to be restricted.

Technologies: CKAN, ckan (PyPI). Vendors: CKAN, PyPI.

Quick answers

Is CVE-2026-42032 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-42032 being exploited in the wild.
How severe is CVE-2026-42032?
Medium severity, with a CVSS score of 4, published 13 May 2026.
Which products and versions are affected?
CKAN < 2.10.10, >= 2.11.0, <= 2.11.4; ckan (PyPI) ECOSYSTEM:introduced=0,fixed=2.10.10, ECOSYSTEM:introduced=0,fixed=2.10.10,introduced=2.11.0,fixed=2.11.5.
Is there a fix for CVE-2026-42032?
Yes. ckan (PyPI): upgrade to 2.10.10, 2.11.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-42032 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-42032?
Check whether you run CKAN or ckan (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • ckan (PyPI): upgrade to 2.10.10, 2.11.5 or later
    pip install "ckan>=2.11.5"

Technical details

An incorrect authorization vulnerability (CWE-863) exists in CKAN's `datastore_search_sql` action function. When the DataStore SQL search feature is enabled, an unauthenticated remote attacker can bypass intended access controls to query private resources and retrieve PostgreSQL system information. The vulnerability stems from insufficient validation within the SQL search logic. The issue is patched in versions 2.10.10 and 2.11.5. A known workaround is to disable the feature by setting `ckan.datastore.sqlsearch.enabled = false`, which is the default configuration.

Affected products

  • CKAN ckan < 2.10.10, >= 2.11.0, <= 2.11.4

Identifiers

  • CVE-2026-42032
  • GHSA-cg4x-64p3-x59h
  • PYSEC-2026-2416

Timeline

  • 2026-04-29: patched: Patched in versions 2.10.10 and 2.11.5
  • 2026-04-30: advisory: GitHub Advisory published

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.