cbcvebase.
CVE-2026-42031
published 2026-05-13

CVE-2026-42031: CKAN is an open-source DMS (data management system) for powering data hubs and data portals. Prior to 2.10.10 and 2.11.5, a vulnerability in…

PriorityP271critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EXPLOIT
EPSS
1.81%
76.0th percentile
CKAN is an open-source DMS (data management system) for powering data hubs and data portals. Prior to 2.10.10 and 2.11.5, a vulnerability in datastore_search_sql allowed attackers to inject SQL in order to gain access to private resources and PostgreSQL system information This vulnerability is fixed in 2.10.10 and 2.11.5.

Affected

6 ranges
VendorProductVersion rangeFixed in
ckanckan< 2.10.102.10.10
ckanckan
ckanckan>= 0 < 2.10.102.10.10
ckanckan>= 2.11.0 < 2.11.52.11.5
okfnckan< 2.10.102.10.10
okfnckan>= 2.11.0 < 2.11.52.11.5

Detection & IOCsextracted from sources · hover to see the quote

url/api/action/datastore_search_sql?sql=SELECT+ts_rewrite('a'::tsquery,+'SELECT+''a''::tsquery,+(SELECT+current_database())::tsquery')
url/api/action/status_show
  • Probe /api/action/status_show first; a 200 response containing 'ckan_version' and '"success": true' confirms a CKAN instance before attempting the injection.
  • Exploitation is confirmed when the datastore_search_sql injection response returns HTTP 200 and contains all three strings: '"success": true', 'ts_rewrite', and 'records'.
  • The injection payload abuses PostgreSQL's ts_rewrite() function to exfiltrate data (e.g., current_database()) via the unauthenticated datastore_search_sql API endpoint — no authentication is required.
  • The vulnerability allows access to private DataStore resources and PostgreSQL system catalog information via SQL injection in the 'sql' GET parameter of datastore_search_sql.
  • ·The nuclei template requires two sequential HTTP requests (flow: http(1) && http(2)); the second injection request is only sent if the first confirms a live CKAN instance.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv4.08.3HIGHCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.