ZeroHour

CVE-2026-85620

niche

Restricted-Mode Bypass in Postgres MCP Pro 0.3.0 Allows Arbitrary File Read

CVSS 4.0
9.2 critical
EPSS
<1%p30
Published
()
Modified
AI analysis

Postgres MCP Pro 0.3.0 contains a restricted-mode bypass (CWE-863, incorrect authorization): function-name validation is not applied to RangeFunction nodes appearing in SQL FROM clauses, so queries can invoke functions that restricted mode is supposed to block. An attacker who can submit SQL through the MCP server can trigger the flaw with FROM-clause syntax, for example invoking pg_read_file to read arbitrary files on the database server host. This yields high confidentiality impact (CVSS 4.0 score 9.2, critical), potentially exposing configuration files or credentials that could affect downstream systems, with no direct integrity or availability impact in the base score. Anyone running Postgres MCP Pro 0.3.0 in restricted mode with untrusted SQL input — a typical setup for AI-agent database access — is affected. There is no known exploitation: no public proof-of-concept, not listed in CISA KEV, and EPSS estimates only a 0.4% probability of exploitation within 30 days (30th percentile).

What to do: Upgrade any Postgres MCP Pro 0.3.0 deployment to a patched release (the fixed version is not specified in the available data) before exposing restricted mode to untrusted SQL sources. As an interim mitigation, revoke EXECUTE on sensitive file-reading functions such as pg_read_file (and membership in file-reading roles like pg_read_server_files) from the database role used by the MCP server, and review logs for FROM-clause function calls such as SELECT ... FROM pg_read_file(...).

Affected
Postgres MCP Pro project (open-source) Postgres MCP Pro0.3.0 (patched version not specified in the available data)
Estimated exposure
nicheon the order of thousands of installations at most (specialized open-source MCP server; no public install counts) — Postgres MCP Pro is a niche open-source Model Context Protocol server used to give AI assistants controlled access to PostgreSQL, typically deployed per developer, team, or database environment rather than at internet scale, so affected…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

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.

Weakness
CWE-863
Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.