# CVE-2026-42031: CKAN: Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`

- Severity: High 8.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.82%, higher than 79% of CVEs (2026-12-01)
- Published: 2026-04-29T23:11:21.000Z
- Modified: 2026-11-11T20:10:00.273Z
- Also known as: GHSA-h7j7-3rx6-xvcg, PYSEC-2026-2417
- Weaknesses: CWE-89, CWE-863
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- ckan ckan: >= 2.11.0, < 2.11.5; < 2.10.10
- ckan (PyPI): before 2.10.10; from 2.11.0 before 2.11.5
- okfn ckan: before 2.10.10; from 2.11.0 before 2.11.5

## Every score

- GitHub_M: CVSS:4.0 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`
- GitHub: CVSS:4.0 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`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://github.com/ckan/ckan/security/advisories/GHSA-h7j7-3rx6-xvcg> (mitigation, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42031> (advisory)
- <https://docs.ckan.org/en/2.10/changelog.html#v-2-10-10-2026-04-29> (web)
- <https://docs.ckan.org/en/2.11/changelog.html#v-2-11-5-2026-04-29> (web)
- <https://docs.ckan.org/en/2.11/extensions/plugin-interfaces.html#ckan.plugins.interfaces.IAuthFunctions> (web)
- <https://docs.ckan.org/en/2.11/maintaining/configuration.html#ckan-datastore-sqlsearch-enabled> (web)
- <https://github.com/ckan/ckan> (package)
- <https://pypi.org/project/ckan> (package)
- <https://github.com/advisories/GHSA-h7j7-3rx6-xvcg> (advisory)

## Sources

- CVE List: [CVE-2026-42031](https://www.cve.org/CVERecord?id=CVE-2026-42031), CVE Terms of Use, modified 2026-05-15
- GitHub Advisory Database: [GHSA-h7j7-3rx6-xvcg](https://github.com/advisories/GHSA-h7j7-3rx6-xvcg), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-42031](https://nvd.nist.gov/vuln/detail/CVE-2026-42031), Public domain, modified 2026-11-11
- PyPA Advisory Database: [PYSEC-2026-2417](https://osv.dev/vulnerability/PYSEC-2026-2417), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-42031 · Whole record: https://cve.day/CVE-2026-42031.json · Rebuilt by cve.day 2026-11-25T22:59:21.635Z
