Description
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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| crystaldba | postgres-mcp | ≤ 0.3.0 | — |
References
- GitHub Issue #178 issue-tracking
- https://github.com/crystaldba/postgres-mcp product
- https://github.com/crystaldba/postgres-mcp/blob/v0.3.0/src/postgres_mcp/sql/safe_sql.py technical-description
- VulnCheck Advisory: Postgres MCP Pro 0.3.0 Restricted-Mode Bypass via FROM-Clause Function third-party-advisory