{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.1.0"
                  },
                  {
                    "fixed": "1.6.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "87c6fc565a1ab17906bea8314862f871206e9c8c"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v1.6.1",
                "range": [
                  {
                    "fixed": "c4166110eee8d42a717c0e047f80a0592fa79f69"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0d1acdce078a2b71a2cae8378c7cab5d580f3575"
            },
            {
              "fixed": "c4166110eee8d42a717c0e047f80a0592fa79f69"
            },
            {
              "fixed": "87c6fc565a1ab17906bea8314862f871206e9c8c"
            }
          ],
          "repo": "https://github.com/bytebase/dbhub",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-184"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142224.json"
  },
  "details": "DBHub 1.1.0 before 1.6.1 contains a validation bypass in the explain_sql tool that allows MCP clients to execute statements instead of only planning them. Attackers can submit ANALYSE SELECT or (ANALYSE) SELECT input to run arbitrary read-only queries and functions like pg_sleep against PostgreSQL sources.",
  "id": "CVE-2026-142224",
  "modified": "2026-12-02T17:45:19.218093017Z",
  "published": "2026-12-02T16:50:20.865Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142224.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/bytebase/dbhub"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/bytebase/dbhub/blob/0b2532b26da6e31a88d9533b6958b346bb735640/src/tools/explain-sql.ts#L43-L70"
    },
    {
      "type": "FIX",
      "url": "https://github.com/bytebase/dbhub/commit/87c6fc565a1ab17906bea8314862f871206e9c8c"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/bytebase/dbhub/issues/501"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/bytebase/dbhub/releases/tag/v1.6.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142224"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/dbhub-1.1.0-before-1.6.1-validation-bypass-via-explain-sql-analyse-keyword"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "DBHub 1.1.0 before 1.6.1 Validation Bypass via explain_sql ANALYSE Keyword"
}