# CVE-2026-85620: Postgres MCP Pro 0.3.0 Restricted-Mode Bypass via FROM-Clause Function

- Severity: Critical 9.2 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2026-09-04T14:32:11.907Z
- Modified: 2026-09-24T20:44:42.207Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- crystaldba postgres-mcp: up to 0.3.0

## Every score

- VulnCheck: CVSS:4.0 9.2 Critical `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`
- VulnCheck: CVSS:3.1 8.6 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N`

## References

- <https://github.com/crystaldba/postgres-mcp/issues/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)
- <https://www.vulncheck.com/advisories/postgres-mcp-pro-0.3.0-restricted-mode-bypass-via-from-clause-function> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-85620](https://www.cve.org/CVERecord?id=CVE-2026-85620), CVE Terms of Use, modified 2026-09-14
- NVD: [CVE-2026-85620](https://nvd.nist.gov/vuln/detail/CVE-2026-85620), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-85620 · Whole record: https://cve.day/CVE-2026-85620.json · Rebuilt by cve.day 2026-11-25T22:59:36.294Z
