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.