{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0.88.0"
                  },
                  {
                    "fixed": "0.132.0"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "9de47fb365dda639aded842ec332cdc399b9939b"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "0.132.0",
                "range": [
                  {
                    "fixed": "24c53c73142edd488a9684d7c49d071eda25fdf3"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "754687c4da6f8539902e28582e877b1835c3e568"
            },
            {
              "fixed": "24c53c73142edd488a9684d7c49d071eda25fdf3"
            },
            {
              "fixed": "9de47fb365dda639aded842ec332cdc399b9939b"
            }
          ],
          "repo": "https://github.com/clidey/whodb",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-863"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138032.json"
  },
  "details": "WhoDB from 0.88.0 before 0.132.0 contains an access control bypass in the MCP whodb_query tool, letting callers run file-writing statements without approval because the sqlguard keyword classifier omits INTO, OUTFILE and DUMPFILE. MCP clients or prompt-injected models can execute PostgreSQL lo_export or MySQL SELECT INTO OUTFILE to create files on the database host and create tables, bypassing confirmation and read-only modes.",
  "id": "CVE-2026-138032",
  "modified": "2026-11-27T20:45:21.676378422Z",
  "published": "2026-11-27T19:15:14.326Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138032.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/clidey/whodb"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/clidey/whodb/blob/0.131.0/cli/pkg/mcp/tools.go#L585-L620"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/clidey/whodb/blob/0.131.0/cli/pkg/mcp/validation.go#L115-L145"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/clidey/whodb/blob/0.131.0/core/src/sqlguard/classify.go#L81-L97"
    },
    {
      "type": "FIX",
      "url": "https://github.com/clidey/whodb/commit/9de47fb365dda639aded842ec332cdc399b9939b"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/clidey/whodb/releases/tag/0.132.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/clidey/whodb/security/advisories/GHSA-6mr5-wx6p-65fg"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/clidey/whodb/security/advisories/GHSA-pvf2-6h4x-r24j"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138032"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/whodb-0.88.0-before-0.132.0-mcp-read-only-bypass-via-server-side-file-writes"
    }
  ],
  "related": [
    "GHSA-6mr5-wx6p-65fg",
    "GHSA-pvf2-6h4x-r24j"
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "WhoDB 0.88.0 before 0.132.0 MCP Read-Only Bypass via Server-Side File Writes"
}