Skip to main content

CKAN CVE-2026-42032

MEDIUM
Incorrect Authorization (CWE-863)
2026-04-30 https://github.com/ckan/ckan GHSA-cg4x-64p3-x59h
6.7
CVSS 4.0 · Vendor: https://github.com/ckan/ckan
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify CKAN instance
  2. Delivery
    Confirm datastore_search_sql endpoint is accessible
  3. Exploit
    Send unauthenticated SQL query request
  4. Execution
    Authorization validation bypassed
  5. Persist
    Query private DataStore resources
  6. Impact
    Extract 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pypi ckan fix: 2.10.10, 2.11.5

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

Vendor (https://github.com/ckan/ckan) PRIMARY 6.7 MEDIUM
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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
CVSS changed
May 13, 2026 - 19:22 NVD
6.7 (MEDIUM)
CVE Published
Apr 30, 2026 - 17:34 nvd
MEDIUM

DescriptionCVE.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

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

pkg:pip/ckan
pkg:pip/ckan
CVE-2025-1094 HIGH POC
8.1 Feb 13

PostgreSQL libpq functions PQescapeLiteral(), PQescapeIdentifier(), PQescapeString(), and PQescapeStringConn() improperl

CVE-2024-55964 CRITICAL POC
9.8 Mar 26

An issue was discovered in Appsmith before 1.52. Rated critical severity (CVSS 9.8), this vulnerability is remotely expl

CVE-2013-1899 MEDIUM POC
6.5 Apr 04

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

CVE-2026-20253 CRITICAL POC
9.8 Jun 10

Unauthenticated arbitrary file write in Splunk Enterprise (below 10.2.4 and 10.0.7) and Splunk Cloud Platform (below 10.

CVE-2026-9586 CRITICAL POC
9.3 Jul 17

Unauthenticated SQL injection in Sangoma Switchvox SMB Edition 8.3 (build 104997) lets remote attackers execute arbitrar

CVE-2017-7546 CRITICAL
9.8 Aug 16

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

CVE-2015-1352 MEDIUM POC
5.0 Mar 30

The build_tablename function in pgsql.c in the PostgreSQL (aka pgsql) extension in PHP through 5.6.7 does not validate t

CVE-2024-10553 CRITICAL POC
9.8 Mar 20

A vulnerability in the h2oai/h2o-3 REST API versions 3.46.0.4 allows unauthenticated remote attackers to execute arbitra

CVE-2019-9193 HIGH POC
7.2 Apr 01

In PostgreSQL 9.3 through 11.2, the "COPY TO/FROM PROGRAM" function allows superusers and users in the 'pg_execute_serve

CVE-2026-40887 CRITICAL POC
9.1 Apr 14

Unauthenticated SQL injection in Vendure Shop API allows remote attackers to execute arbitrary SQL commands against the

CVE-2022-24760 CRITICAL POC
10.0 Mar 12

Parse Server is an open source http web server backend. Rated critical severity (CVSS 10.0), this vulnerability is remot

CVE-2025-56157 CRITICAL POC
9.8 Dec 18

Hard-coded default PostgreSQL credentials shipped in the docker-compose.yaml of langgenius Dify through version 1.5.1 al

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy