CVE-2026-125322 Details
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.
A SQL injection vulnerability has been identified in the pgEdge Postgres MCP Server, specifically in versions prior to 1.1.0. The issue arises within the count_rows tool, where the 'where' parameter allows the inclusion of subqueries referencing tables not specified in the original request. This flaw enables a connected database role to extract data from any accessible table by using the returned row count as an inference oracle, all while remaining within the bounds of the role's existing SELECT privileges. The vulnerability has been successfully reproduced and verified against a live server.
Users can upgrade to pgEdge Postgres MCP Server version 1.1.0 or later, where this vulnerability has been fixed. The 'where' parameter in the count_rows tool now rejects subqueries. For deployments that cannot be immediately upgraded, it is recommended to restrict the connecting role's SELECT privileges to only the tables that should be accessible.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 10, 2026CISA-ADP
Assessed Nov 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/pgEdge/pgedge-postgres-mcp/commit/933f1b4cb136183eb307064c1cf1ad2bf015f314 | [email protected] | Source CodeVendor |
| https://github.com/pgEdge/pgedge-postgres-mcp/issues/200 | [email protected] | ExploitIssue TrackingTechnical DescriptionVendor |
| https://github.com/pgEdge/pgedge-postgres-mcp/pull/201 | [email protected] | Source CodeVendor |
| https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0 | [email protected] | Release NotesVendor |
| https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-fhv3-x3jh-grj7 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-209 | Generation of Error Message Containing Sensitive Information | [email protected] |
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| pgEdge Postgres MCP Server | <= 1.0.0 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 14, 2026 | CVE Modified | CISA-ADP |
| Nov 10, 2026 | New CVE Received | [email protected] |
Volerion