Patchfirst
CVE-2026-42031 Public exploit High · 8.3 EPSS 1.8%

CKAN: Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`

Fix:upgrade ckan to 2.11.5 or later Details ↓

ckan · ckan

Summary

CKAN, an open-source data management system for data hubs and portals, contains an SQL injection flaw in its datastore_search_sql function that allows attackers to inject SQL and gain access to private resources and PostgreSQL system information. An unauthenticated remote attacker over the network can exploit it, with no user interaction required, though the attack is noted as requiring specific conditions (attack requirements) to succeed.

Official description · CVE.org

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.

Breakdown
73.7 / 100
Exploited
Yes, in VulnCheck KEV
Reports
0
Tactics
0/15

First seen exploited 4 months after disclosure. Public exploit code (PoC-in-GitHub) appeared 4 months after disclosure.

  1. Disclosedday 0
  2. Public exploit codePoC-in-GitHub+4 mo
  3. First seen exploitedVulnCheck KEV evidence+4 mo

Affected versions and fixes

as published in the CVE record

ckan ckan

Affected: >= 2.11.0, < 2.11.5 · < 2.10.10

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: ckan.

Upgrade to 2.11.5 or later

pippip install "ckan>=2.11.5"

The first fix for CVE-2026-42031. No other CVE tracked by Patchfirst affects this package.

Affected versions, by release line

If you runUpgrade to
2.11.0 up to 2.11.52.11.5
All versions before 2.10.102.10.10

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

Also mentioned in 7 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

1 link, grouped by NVD tag
↑ ↓ chooseEnter openEsc close