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.
Published: 2026-09-04
Score: 9.2 Critical
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

History

Fri, 04 Sep 2026 15:45:00 +0000

Type Values Removed Values Added
First Time appeared Crystaldba
Crystaldba postgres-mcp
Vendors & Products Crystaldba
Crystaldba postgres-mcp

Fri, 04 Sep 2026 14:45:00 +0000

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'}


Subscriptions

Crystaldba Postgres-mcp
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-04T14:32:11.907Z

Reserved: 2026-09-04T11:03:33.315Z

Link: CVE-2026-85620

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-04T15:17:42.150

Modified: 2026-09-04T15:17:42.150

Link: CVE-2026-85620

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-04T15:30:07Z

Weaknesses