CVE-2026-42032: Ckan CKAN Has Unauthenticated Authorization Bypass Vulnerability

MODERATE
Advisory Identifier: GHSA-cg4x-64p3-x59h
CWE-863
Published
Advisory Summary

CVE-2026-42032 is a MODERATE ckan has unauthenticated authorization bypass vulnerability (CWE-863: Incorrect Authorization) affecting Ckan libraries in the PyPI ecosystem. The issue involves ckan has unauthenticated authorization bypass in `datastore_search_sql`. Remediation is available by upgrading affected packages to version 2.10.10, 2.11.5.

CVE-2026-42032 at a Glance

CVE Identifier CVE-2026-42032
GHSA Identifier GHSA-cg4x-64p3-x59h
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-863: Incorrect Authorization
Affected Product Ckan
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2026-42032

To remediate this vulnerability, upgrade all affected Ckan dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

ckan fixed: 2.10.10
pip install ckan>=2.10.10
ckan fixed: 2.11.5
pip install ckan>=2.11.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show ckan

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2026-42032, inspect your installed packages using pip:

pip show ckan

Analyze the terminal output to locate any version of Ckan in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.10.10), your application is affected.

Note: The pip show ckan command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Ckan, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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](https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-datastore-sqlsearch-enabled), 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`](https://docs.ckan.org/en/2.11/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IAuthFunctions) plugin. ### Credits * Reported by Arvin Shivram of Brutecat Security

CVE-2026-42032 Affected Ckan Versions

2 component(s)
Fixed Versions:
2.10.102.11.5
Product / Package Ecosystem Affected Versions Fixed Version
ckan
PyPI
< 2.10.10
2.10.10
ckan
PyPI
≥ 2.11.0
< 2.11.5
2.11.5

References

Frequently Asked Questions

What is CVE-2026-42032?
CVE-2026-42032 is a security vulnerability in Ckan involving CKAN has Unauthenticated Authorization Bypass in `datastore_search_sql` under CWE-863: Incorrect Authorization.
Which Ckan versions are affected?
Affected versions include releases prior to 2.10.10, 2.11.5 across affected packages: ckan.
What version fixes CVE-2026-42032?
Upgrading to 2.10.10, 2.11.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ckan affected?
Yes, ckan is affected in releases prior to 2.10.10, 2.11.5. Upgrade your dependency to 2.10.10, 2.11.5 or later.
What CWE is associated with CVE-2026-42032?
CVE-2026-42032 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check PyPI dependencies for CVE-2026-42032?
Run the dependency tree command: 'pip show ckan'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-cg4x-64p3-x59h",
  "modified" : "2026-05-14T20:39:49Z",
  "published" : "2026-04-30T17:34:44Z",
  "aliases" : [ "CVE-2026-42032" ],
  "summary" : "CKAN has Unauthenticated Authorization Bypass in `datastore_search_sql`",
  "details" : "### Impact\n\nA vulnerability in `datastore_search_sql` allowed attackers to bypass authorization in order to gain access to private resources and PostgreSQL system information\n\n### Patches\nThe issue has been patched in CKAN 2.10.10 and CKAN 2.11.5\n\n### Workarounds\nDisable the DataStore SQL search (`ckan.datastore.sqlsearch.enabled = false`). Note that the SQL search is disabled by default.\n\n### More information\n\nAs stated in the [documentation](https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-datastore-sqlsearch-enabled), 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`](https://docs.ckan.org/en/2.11/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IAuthFunctions) plugin.\n\n### Credits\n\n* Reported by Arvin Shivram of Brutecat Security",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:U"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ckan"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.10.10"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "ckan"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.11.0"
      }, {
        "fixed" : "2.11.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.11.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ckan/ckan/security/advisories/GHSA-cg4x-64p3-x59h"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-42032"
  }, {
    "type" : "WEB",
    "url" : "https://docs.ckan.org/en/2.10/changelog.html#v-2-10-10-2026-04-29"
  }, {
    "type" : "WEB",
    "url" : "https://docs.ckan.org/en/2.11/changelog.html#v-2-11-5-2026-04-29"
  }, {
    "type" : "WEB",
    "url" : "https://docs.ckan.org/en/2.11/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IAuthFunctions"
  }, {
    "type" : "WEB",
    "url" : "https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-datastore-sqlsearch-enabled"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ckan/ckan"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-30T17:34:44Z",
    "nvd_published_at" : "2026-05-13T19:17:22Z"
  }
}