Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-42031
Confirmed fixed CVEs
Not specified
Updated in this feed
6 Nov 2026, 02:36 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 13 May 2026, 18:52 UTC

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.

osv:CVE-2026-42031
Complete source record
{
  "id": "2d1b0c7329f67398c362cffec007d009533e795f50285ab07d1f28dfd5947831",
  "url": "https://osv.dev/vulnerability/CVE-2026-42031",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CKAN: Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`",
    "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.",
    "evidence": "osv:CVE-2026-42031",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-42031",
      "aliases": [
        "CVE-2026-42031",
        "GHSA-h7j7-3rx6-xvcg",
        "PYSEC-2026-2417"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "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"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ckan/ckan",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "f826af9c66ce98c7f274a58b0b95f6925f1eb351"
                },
                {
                  "introduced": "710dfff718859ff284f0e9feee70c1ecfc86677a"
                },
                {
                  "fixed": "69f790d9e37805827f513a78e586ac54be91a6b9"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:okfn:ckan:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.10.10"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:okfn:ckan:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.11.0"
                      },
                      {
                        "fixed": "2.11.5"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "ckan-2.11.4",
            "ckan-2.10.9",
            "ckan-2.11.3",
            "ckan-2.10.8",
            "ckan-2.11.2",
            "ckan-2.10.7",
            "ckan-2.10.6",
            "ckan-2.11.1",
            "ckan-2.11.0",
            "ckan-2.10.5",
            "ckan-2.10.4",
            "ckan-2.10.3",
            "ckan-2.10.2",
            "ckan-2.10.0",
            "ckan-1.5",
            "ckan-1.4.3",
            "ckan-1.3.3b"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-42031.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:46.075566433Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42031.json",
        "https://github.com/ckan/ckan/security/advisories/GHSA-h7j7-3rx6-xvcg",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-42031"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-89"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42031.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-42031",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 514331,
  "published_at": "2026-05-13T18:52:35.383+00:00"
}