Skip to main content

CKAN CVE-2026-42031

HIGH
SQL Injection (CWE-89)
2026-04-29 https://github.com/ckan/ckan GHSA-h7j7-3rx6-xvcg
8.3
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
    Reach CKAN datastore_search_sql endpoint
  2. Delivery
    Submit crafted SQL injection payload
  3. Exploit
    Bypass authorization protections
  4. Execution
    Query private resources and PostgreSQL catalogs
  5. Impact
    Exfiltrate sensitive private data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Persistence

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the CKAN instance has the DataStore SQL search feature explicitly enabled via ckan.datastore.sqlsearch.enabled = true - this is NOT the default (the feature ships disabled), which is the single most important limiting factor and reflected in the CVSS AT:P attack-requirement metric. Given that configuration, no authentication is needed (PR:N): a remote attacker reaches the datastore_search_sql action over the network and injects SQL to access private DataStore resources and PostgreSQL system information. No user interaction is required. Deployments left at default settings, or those already fronting the action with an IAuthFunctions authorization restriction, are not exploitable in this manner.

Impact

Signals are moderately elevated but qualified. The CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H) indicates network-reachable, unauthenticated access with high confidentiality impact, but the AT:P (attack requirement present) metric and the vendor note that SQL search is disabled by default are critical mitigating factors - exploitation only works where an operator has explicitly enabled ckan.datastore.sqlsearch.enabled. EPSS of 3.15% (87th percentile) plus publicly available exploit code raise practical concern, yet the absence of CISA KEV listing means no confirmed active exploitation. Net: this is a real, patch-worthy issue for the subset of CKAN deployments that enable SQL search over sensitive private data, but the non-default configuration requirement meaningfully narrows the exposed population compared to what an 8.3 score alone might imply. Impact is primarily confidentiality/authorization bypass (VI:L, VA:N) rather than full compromise.

Exploit ScenarioDerived

On a CKAN portal that has enabled ckan.datastore.sqlsearch.enabled, an unauthenticated attacker sends a crafted request to the datastore_search_sql API endpoint containing injected SQL. The payload breaks out of the intended query to read rows from private (non-public) DataStore resources and query PostgreSQL system catalogs, exfiltrating sensitive data. Publicly available exploit code lowers the skill barrier, though the required non-default configuration limits which targets are viable.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 3.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jul 24, 2026

SQL injection in CKAN's datastore_search_sql action allows unauthenticated remote attackers to read private DataStore resources and enumerate PostgreSQL system information by injecting crafted SQL. The flaw affects CKAN versions below 2.10.10 and the 2.11.0-2.11.4 range, and also functions as an authorization bypass since private data protected by CKAN's access controls can be exfiltrated. Publicly available exploit code exists; EPSS rates it in the 87th percentile (3.15%), but it is not listed in CISA KEV and there is no public exploit identified as being actively used in the wild.

RemediationAI

Vendor-released patch: upgrade to CKAN 2.10.10 (for 2.10.x deployments) or 2.11.5 (for 2.11.x deployments), both released 2026-04-29 (changelogs: https://docs.ckan.org/en/2.10/changelog.html#v-2-10-10-2026-04-29 and https://docs.ckan.org/en/2.11/changelog.html#v-2-11-5-2026-04-29). If immediate patching is not possible, the primary workaround is to disable the DataStore SQL search by setting ckan.datastore.sqlsearch.enabled = false (this is the default, so most sites are unaffected) - the trade-off is loss of arbitrary SQL query capability for any integrations that rely on it. Where the feature must remain enabled, restrict its use with an IAuthFunctions plugin (https://docs.ckan.org/en/2.11/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IAuthFunctions) to limit which users can invoke datastore_search_sql, accepting the added maintenance overhead of a custom auth extension. See advisory GHSA-h7j7-3rx6-xvcg for full guidance.

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

CKAN is an open-source data management/portal platform (Python, pip package ckan) widely used by governments and organizations to publish open data catalogs. Its DataStore extension stores tabular resource data in PostgreSQL and exposes a datastore_search_sql action that accepts raw SQL queries against that database. The root cause is CWE-89 (SQL Injection): input-sanitization protections on this action were insufficient, letting an attacker break out of the intended query context to reach private resources and PostgreSQL internal/system catalogs. Per CKAN documentation, datastore_search_sql was always understood to offer only partial safety and is disabled by default via ckan.datastore.sqlsearch.enabled = false.

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 8.3 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Network, unauthenticated (PR:N), but requires the non-default sqlsearch feature enabled so AC:H; high confidentiality read, limited integrity, no availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/ckan/ckan).

CVSS VectorVendor: https://github.com/ckan/ckan

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
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

3
CVSS changed
May 13, 2026 - 19:22 NVD
8.3 (HIGH)
CVE Published
Apr 29, 2026 - 23:11 github-advisory
HIGH 8.3
CVE Published
Apr 29, 2026 - 23:11 nvd
HIGH

DescriptionCVE.org

Impact

A vulnerability in datastore_search_sql allowed attackers to inject SQL 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 a project's DataStore and the likelihood of abuse of a consuming site, a developer may choose to disable this action function or restrict its use with a IAuthFunctions plugin.

Credits

  • Reported by Arvin Shivram of Brutecat Security

Executive ViewAI

Why It Matters

CKAN data management systems are vulnerable to an unauthenticated SQL injection attack allowing unauthorized access to private data repositories and system information, directly threatening data confidentiality and compliance posture. Attackers can bypass access controls and exfiltrate sensitive information without valid credentials; publicly available exploit code exists. An urgent patch deployment is required given the 8.3 CVSS severity.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
3.1%
Top 13% exploitable
Prevalence
Medium
popular open-data portal software, common in government but not ubiquitous
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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 HIGH
CISA KEV No
Public POC Yes
EPSS 3.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

65
Low Medium High Critical
KEV: 0
EPSS: +3
CVSS: +42
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

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