CKAN: Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- SQL injection, Security bypass
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89 and CWE-863.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| ckan | ckan | 2.11.0 to before 2.11.5; before 2.10.10 | 2.11.5, 2.10.10 | Patch available | CNA |
| — | ckan (PyPI) | before 2.10.10 | 2.10.10 | Patch available | GHSA-h7j7-3rx6-xvcg |
| — | ckan (PyPI) | 2.11.0 to before 2.11.5 | 2.11.5 | Patch available | GHSA-h7j7-3rx6-xvcg |
- ckan Vendorckan Affected 2.11.0 to before 2.11.5; before 2.10.10 Fixed in 2.11.5, 2.10.10 Patch available CNA
- ckan (PyPI) Vendor— Affected before 2.10.10 Fixed in 2.10.10 Patch available GHSA-h7j7-3rx6-xvcg
- ckan (PyPI) Vendor— Affected 2.11.0 to before 2.11.5 Fixed in 2.11.5 Patch available GHSA-h7j7-3rx6-xvcg
Remediation
- Fix · CNA ckan (ckan) Fixed in 2.11.5, 2.10.10
- Fix · GHSA-h7j7-3rx6-xvcg ckan (PyPI) Fixed in 2.10.10 Advisory →
- Fix · GHSA-h7j7-3rx6-xvcg ckan (PyPI) Fixed in 2.11.5 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-42031
- 2026-10-03 Alias added: GHSA-h7j7-3rx6-xvcg
References
Advisory 2
Other 5
- 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
- https://docs.ckan.org/en/2.11/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IAuthFunctions
- https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-datastore-sqlsearch-enabled
- https://github.com/ckan/ckan
More Ckan vulnerabilities
- TI-2026-29863 CKAN: CSRF exemption primed by anonymous requests CVSS 3.1MEDIUM 6.1
- TI-2021-07973 CKAN - Stored Cross-Site Scripting (XSS) via SVG File Upload CVSS 3.1MEDIUM 5.4
- TI-2023-15615 CKAN remote code execution and private information access via crafted resource ids CVSS 3.1CRITICAL 9.8
- TI-2023-08919 CKAN is vulnerable to session secret shared across instances using Docker images CVSS 3.1HIGH 8.6
- TI-2023-15972 Excessive permissions for ckan user CVSS 3.1HIGH 8.8
- TI-2022-21443 CKAN through 2.9.6 account takeovers by unauthenticated users when an existing user id is… CVSS 3.1HIGH 8.8
Sources
- CVE-2026-42031 · CVE Program
- CVE-2026-42031 · NVD
- FIRST EPSS
- GHSA-h7j7-3rx6-xvcg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences