{"id":"CVE-2026-85620","summary":"Postgres MCP Pro 0.3.0 Restricted-Mode Bypass via FROM-Clause Function","details":"Postgres MCP Pro 0.3.0 contains a restricted-mode bypass vulnerability where function-name validation is not applied to RangeFunction nodes in FROM clauses. Attackers can execute file-reading functions like pg_read_file through FROM-clause syntax to read arbitrary files despite restricted-mode protections.","modified":"2026-09-06T03:47:18.304343747Z","published":"2026-09-04T14:32:11.907Z","database_specific":{"cwe_ids":["CWE-863"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85620.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/85xxx/CVE-2026-85620.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85620"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/postgres-mcp-pro-0.3.0-restricted-mode-bypass-via-from-clause-function"},{"type":"REPORT","url":"https://github.com/crystaldba/postgres-mcp/issues/178"},{"type":"PACKAGE","url":"https://github.com/crystaldba/postgres-mcp"},{"type":"ARTICLE","url":"https://github.com/crystaldba/postgres-mcp/blob/v0.3.0/src/postgres_mcp/sql/safe_sql.py"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/crystaldba/postgres-mcp","events":[{"introduced":"0"},{"last_affected":"7179ab0336396f819e23b0b012a9c284be10fac3"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"last_affected":"0.3.0"}],"source":"AFFECTED_FIELD"}}],"versions":["v0.3.0","v0.2.0","v0.2.0rc1","v0.1.1","v0.1.1rc1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-85620.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N"}]}