CVE-2026-125322

pgEdge Postgres MCP Server SQL injection in the count_rows where parameter

Published Nov 10, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
pgEdge Postgres MCP Server enables SQL queries against PostgreSQL databases through Model Context Protocol compatible clients. Prior to 1.1.0, the where parameter of the count_rows tool accepted subqueries against tables other than the table named in the tool call. A caller could use predicates and the returned row count as an inference oracle to extract data from any other table that the connected database role could read. The database privilege boundary remained intact, and the flaw did not grant access to tables outside that role's existing SELECT privileges. This issue is fixed in version 1.1.0.

Analysis

AI-generated

Technical impact

The vulnerability exists in the count_rows function of the pgEdge Postgres MCP Server, where the where parameter accepts arbitrary subqueries against other tables. This flaw allows an attacker to construct SQL expressions that count rows from any table visible to the connected database role. The attacker then leverages the returned count as an inference oracle to deduce data values from those tables. While the attack does not bypass existing SELECT privileges, it permits unauthorized information disclosure within the confines of the role’s permissions.

Affected Systems

Affected systems include the pgEdge pgedge-postgres-mcp product, specifically any deployment running a version earlier than v1.1.0. The patch released in v1.1.0 removes support for subqueries in the where clause, thereby closing the path for data inference.

Risk and Exploitability

The risk is measured with a CVSS score of 6.5, indicating moderate severity. An EPSS score of less than 1% suggests a low probability of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog, meaning no confirmed public exploits are known. The likely attack vector involves any client that can invoke the MCP Server; the attacker must be authenticated as a database role that has read access to the target tables.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade pgEdge pgedge-postgres-mcp to v1.1.0 or later
  • Restrict database roles to only the necessary SELECT permissions on tables that must be queried
  • Audit MCP Server logs for anomalous count_rows activity and investigate any unexpected queries

Generated by OpenCVE AI on November 15, 2026 at 03:19 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Pgedge
Pgedge pgedge-postgres-mcp
Vendors & Products Pgedge
Pgedge pgedge-postgres-mcp
Type Values Removed Values Added
Description pgEdge Postgres MCP Server enables SQL queries against PostgreSQL databases through Model Context Protocol compatible clients. Prior to 1.1.0, the where parameter of the count_rows tool accepted subqueries against tables other than the table named in the tool call. A caller could use predicates and the returned row count as an inference oracle to extract data from any other table that the connected database role could read. The database privilege boundary remained intact, and the flaw did not grant access to tables outside that role's existing SELECT privileges. This issue is fixed in version 1.1.0.
Title pgEdge Postgres MCP Server SQL injection in the count_rows where parameter
Weaknesses CWE-209
CWE-89
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-209

    Generation of Error Message Containing Sensitive Information

  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 14, 2026, 2:58 AM
Reserved
Nov 9, 2026, 9:22 PM
Status
Deferred
Published
Nov 10, 2026, 6:17 PM
Modified
Nov 14, 2026, 3:17 AM