CKAN CVE-2026-42032
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify CKAN instance
-
DeliveryConfirm datastore_search_sql endpoint is accessible
-
ExploitSend unauthenticated SQL query request
-
ExecutionAuthorization validation bypassed
-
PersistQuery private DataStore resources
-
ImpactExtract sensitive data and system metadata
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The DataStore SQL search feature must be explicitly enabled via ckan.datastore.sqlsearch.enabled = true in the CKAN configuration; this setting is disabled by default, which is the primary limiting factor on baseline risk. Exploitation requires network access to the CKAN instance and the datastore_search_sql endpoint. No authentication is required to trigger the vulnerability. The vulnerability only affects private resources-public DataStore resources are not subject to authorization bypass because public access is already permitted. Exploitation is further limited by the underlying DataStore dataset visibility settings; an attacker can only access private data in datasets that exist and are marked private in the CKAN instance. |
| Impact | Although CVSS score and vector are not provided, the vulnerability meets criteria for high real-world risk based on multiple signals: (1) CWE-863 (Incorrect Authorization) is a foundational access control flaw with inherent severity; (2) the attack vector is network-accessible and requires no authentication (inferred from 'Unauthenticated Authorization Bypass' in advisory title); (3) impact is high-unauthorized access to private resources and system metadata; (4) exploitation complexity is likely low given the function is publicly exposed; (5) the feature is disabled by default, which significantly reduces baseline risk, but organizations that enable it for legitimate use face material exposure. The absence of CVSS scoring and EPSS data prevents quantitative exploitation probability assessment, but the nature of authorization bypass vulnerabilities typically correlates with high exploitability once discovered. No KEV status or active exploitation confirmation is evident in the provided data, suggesting this may be a recently disclosed or low-visibility issue despite its severity class. Risk is highest for CKAN deployments with ckan.datastore.sqlsearch.enabled = true and private DataStore resources containing sensitive data. |
| Exploit ScenarioDerived | An attacker discovers a CKAN instance with datastore_search_sql enabled and sends a crafted HTTP request to the datastore_search_sql API endpoint without authentication. The authorization bypass flaw allows the request to proceed without validation, returning private DataStore records and PostgreSQL system table metadata that should have been restricted. The attacker can iteratively enumerate dataset structures and private data content, potentially identifying sensitive information for further exploitation or disclosure. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 30, 2026
Authorization bypass in CKAN's datastore_search_sql function allows unauthenticated attackers to access private DataStore resources and extract PostgreSQL system information. CKAN versions prior to 2.10.10 and 2.11.0-2.11.4 are affected. The vulnerability exists in a feature that is disabled by default but can be enabled via configuration, limiting baseline exposure but creating significant risk for deployments that enable SQL search functionality.
RemediationAI
Apply vendor-released patch by upgrading to CKAN 2.10.10 or later (for 2.10.x users) or CKAN 2.11.5 or later (for 2.11.x users). If immediate patching is not feasible, disable the DataStore SQL search feature by setting ckan.datastore.sqlsearch.enabled = false in your CKAN configuration file; this workaround eliminates the vulnerability surface but removes SQL query functionality for DataStore users who rely on it. As an alternative or additional hardening measure, implement custom authorization logic using the IAuthFunctions plugin interface to restrict datastore_search_sql access to specific authenticated users or roles, allowing controlled enablement without full exposure. Verify the setting is applied correctly and test DataStore functionality after deployment. References: https://github.com/ckan/ckan/security/advisories/GHSA-cg4x-64p3-x59h, https://docs.ckan.org/en/2.10/changelog.html#v-2-10-10-2026-04-29, https://docs.ckan.org/en/2.11/changelog.html#v-2-11-5-2026-04-29.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability affects the datastore_search_sql action function in CKAN, a data management and API platform built on PostgreSQL. CWE-863 (Incorrect Authorization) indicates the root cause is insufficient access control validation when processing SQL search requests against private DataStore resources. The datastore_search_sql feature is designed to allow SQL queries against DataStore datasets but includes built-in protections that proved insufficient to prevent authorization bypass. Attackers leveraging this flaw can bypass intended authorization checks to query private data and extract metadata about PostgreSQL system tables, potentially revealing sensitive schema and configuration information.
Know when PostgreSQL gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (https://github.com/ckan/ckan) · only source for this CVE.
CVSS VectorVendor: https://github.com/ckan/ckan
Lifecycle Timeline
2DescriptionCVE.org
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
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
More in PostgreSQL
View allPostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl
An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl
Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows re
Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.
Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar
PostgreSQL versions before 9.2.22, 9.3.18, 9.4.13, 9.5.8 and 9.6.4 are vulnerable to incorrect authentication flaw allow
The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t
A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra
In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve
Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the
Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot
Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al
GHSA-cg4x-64p3-x59h
NVD
CVE.org
EPSS
VulDB
Exploit-DB