Paper/Archive/CVE-2026-85620

CVE-2026-85620

crystaldba postgres-mcp — Postgres MCP Pro 0.3.0 Restricted-Mode Bypass via FROM-Clause Function

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
postgres-mcp≤ 0.3.0–CNA

Scores by source

VulnCheck (CNA)9.2CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
VulnCheck (CNA)8.6CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
CISA ADPSSVCExploitation: none · Automatable: yes · Technical impact: partial

References

refgithub.com/crystaldba/postgres-mcp/issues/178refgithub.com/crystaldba/postgres-mcpwriteupgithub.com/crystaldba/postgres-mcp/blob/v0.3.0/src/postgres_mcp/sql/safe_sql.pywriteupvulncheck.com/advisories/postgres-mcp-pro-0.3.0-restricted-mode-bypass-via-from-clause-function