CVE-2026-85620

Postgres MCP Pro 0.3.0 Restricted-Mode Bypass via FROM-Clause Function

Published Sep 4, 2026 CVSS 4.0 · 9.2 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability arises because function‑name validation is omitted for RangeFunction nodes found in FROM clauses. This omission allows an attacker to invoke file‑reading functions such as pg_read_file by crafting a query that uses a function in the FROM clause. The attacker can thereby read any file the database process can access, leading to potential disclosure of sensitive configuration or data files and broader system compromise.

Affected Systems

The affected vendor is crystaldba, and the product is Postgres MCP Pro version 0.3.0. No additional versions or products are listed as impacted.

Risk and Exploitability

The vulnerability scores a CVSS of 9.2 and is not listed in the CISA KEV catalog, suggesting no known widespread exploitation so far. Because EPSS data is unavailable the precise exploitation probability is unclear, but the straightforward nature of the flaw means that, given DB access and the ability to run a query, an attacker can retrieve arbitrary files. The impact is high confidentiality impact and the potential to open further privilege escalation vector.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to the latest stable release of Postgres MCP Pro that implements function‑name validation for RangeFunction nodes.
  • Revoke the pg_read_file privilege from all database roles that do not explicitly require it, using "REVOKE pg_read_file FROM role;".
  • Run the database server under the least‑privileged operating‑system user and limit its filesystem permissions so that pg_read_file cannot access sensitive system files.

Generated by OpenCVE AI on September 4, 2026 at 15:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Crystaldba
Crystaldba postgres-mcp
Vendors & Products Crystaldba
Crystaldba postgres-mcp
Type Values Removed Values Added
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.
Title Postgres MCP Pro 0.3.0 Restricted-Mode Bypass via FROM-Clause Function
Weaknesses CWE-863
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N'}

cvssV4_0

{'score': 9.2, '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 14, 2026, 7:33 PM
Reserved
Sep 4, 2026, 11:03 AM
Status
Awaiting Analysis
Published
Sep 4, 2026, 3:17 PM
Modified
Sep 24, 2026, 8:44 PM