Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach MCP server and issue tool calls
-
DeliveryCraft count_rows where clause with boolean subquery
-
ExploitUse returned row count as true/false oracle
-
ExecutionEnumerate another table character-by-character
-
ImpactExfiltrate data the role can read
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The attacker must be able to reach the pgEdge Postgres MCP Server over MCP and invoke the count_rows tool (PR:L - not fully unauthenticated), and the PostgreSQL role the server connects with must have SELECT on tables beyond what the deployment intends to expose; the oracle can only read what that role can already read, and the database privilege boundary is not crossed. Exploitation is limited to versions 1.0.0 and earlier (all alpha/beta pre-releases included); 1.1.0 rejects subqueries in the where parameter. The vendor-documented workaround is to grant the connecting role SELECT only on tables meant to be exposed, which bounds the oracle's reach; the vendor states upgrading to 1.1.0 is the fix. Note the fix deliberately leaves same-table filter bypasses (e.g. where="status='x' OR 1=1") and function calls like to_regclass() in scope-out as out of scope, as they do not read another table's contents. |
| Impact | The provided CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, base 6.5) describes a network-reachable, low-complexity flaw that requires some privilege (PR:L - a caller able to issue MCP tool calls) and yields high confidentiality impact with no integrity or availability effect, which is consistent with a read-only blind SQL injection oracle. vuln.today assigns a Decision label of this_month, i.e. a real but non-emergency priority rather than act_now/emergency. No EPSS score and no KEV status were supplied, so there is no signal of active or widespread exploitation; absence of these is not evidence of safety but also does not elevate urgency. The GHSA advisory and issue #200 confirm the flaw was fully reproduced, including end-to-end secret extraction, before the fix - so exploitability is demonstrated in principle even though the input does not mark a working exploit as publicly published. Net: this is a genuine, confirmed confidentiality issue bounded by the connecting database role's existing SELECT privileges (the privilege boundary stays intact), not a privilege-escalation or data-destruction flaw; real-world severity hinges on how broadly that role can read and on how exposed the MCP endpoint is. No signals are internally conflicting; the main unknowns are exploitation-in-the-wild (no KEV/EPSS data) and deployment footprint. |
| Exploit ScenarioDerived | A caller who can reach the pgEdge Postgres MCP Server and invoke the count_rows tool supplies a where parameter containing a boolean subquery referencing a table other than the one named in the call; the returned row count acts as a true/false oracle, letting the attacker enumerate that other table's contents one predicate (and effectively one character) at a time. Issue #200 documents a full reproduction including end-to-end secret extraction, so the technique is demonstrated, though the input does not confirm published working exploit code. Exploitation is network-reachable and low-complexity but limited to data the connected database role can already SELECT. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 10, 2026
SQL injection in the where parameter of the count_rows tool in pgEdge Postgres MCP Server 1.0.0 and earlier (including all alpha and beta pre-releases) lets a caller embed a subquery that references a different table and then use the returned row count as a boolean or error-based blind inference oracle to extract that table's contents. The database privilege boundary is not crossed - only tables the connecting PostgreSQL role can already SELECT are reachable - but any deployment whose connecting role reads more than it intends to expose leaks data at high confidentiality impact (CVSS 6.5, network-reachable, PR:L, no integrity or availability effect). Version 1.1.0 rejects subqueries in the where clause; no public exploit identified at time of analysis.
RemediationAI
Vendor-released patch: upgrade pgEdge Postgres MCP Server to 1.1.0 or later (https://github.com/pgEdge/pgedge-postgres-mcp/releases/tag/v1.1.0), which applies the fix from PR 201 / commit 933f1b4; the vendor verified it by reproducing the extraction against a running server before the change and confirming it failed afterwards, including several variations. The vendor-documented workaround, worth doing regardless of this advisory, is to grant the connecting role SELECT only on the tables the deployment intends to expose, which bounds what the oracle can reach. Operators should expect the patched server to reject any where clause containing SELECT or TABLE (legitimate simple predicates such as "status = 'active' AND created_at > '2024-01-01'" are unaffected), and should note that the fix deliberately leaves same-table filter bypasses such as where="status = 'x' OR 1=1" and function calls like to_regclass('other_table') in place, since neither reads another table's contents; query_database and execute_explain are unchanged and remain able to run arbitrary SQL by design. Full details are in the advisory at https://github.com/pgEdge/pgedge-postgres-mcp/security/advisories/GHSA-fhv3-x3jh-grj7 and the accompanying changelog.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The pgEdge Postgres MCP Server exposes PostgreSQL operations to Model Context Protocol clients as discrete tools. count_rows answers how many rows match a caller-supplied predicate, and that predicate was interpolated directly into a generated SELECT COUNT(*) statement with only the read-only guard (validateReadOnlyQuery) in front of it. That guard recognises constructs that escape read-only mode (stacked queries, DO blocks, set_config), but a boolean or scalar subquery is ordinary, legal SQL that it has no reason to flag, so a where clause such as a parenthesised (SELECT ... FROM other_table) could be compared against and the resulting count used as a true/false signal to enumerate another table's data one predicate at a time (CWE-89; the advisory also cites CWE-209 for error-based leakage). The fix adds validateCountRowsWhereClause in internal/tools/count_rows.go, which strips comments and blanks string literals and then rejects a bare SELECT or TABLE keyword in the residue; TABLE had to be included because TABLE tablename is PostgreSQL shorthand for SELECT * FROM tablename and reads the same data without the word SELECT appearing. VALUES, the grammar's third row-returning form, is intentionally not blocked because it admits no FROM clause and cannot read a table. query_database and execute_explain deliberately do not call the new validator, since running arbitrary SQL including subqueries is their entire purpose.
Know when Pgedge Postgres Mcp gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Network-reachable via MCP with low complexity; PR:L because the attacker must be an authorized tool caller; C:H for cross-table data disclosure, I:N/A:N as the flaw is read-only.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
More in Pgedge Postgres Mcp
View allSQL injection in pgEdge Postgres MCP Server 1.0.0 and earlier lets an authenticated, low-privilege caller who can invoke
Read-only mode in pgEdge Postgres MCP Server 1.0.0 and earlier can be bypassed through the query_database tool, allowing
Client-side write confirmation bypass in pgEdge Postgres MCP Server 1.0.0 and earlier: the bundled CLI and web clients d
Login rate limiting in pgEdge Postgres MCP Server 1.0.0 and earlier - including all alpha and beta pre-releases - can be
DNS rebinding exposure in pgEdge Postgres MCP Server 1.0.0 and earlier lets a web page the user is merely visiting drive
pgEdge Postgres MCP Server 1.0.0 and earlier ship bundled CLI and web clients that decide whether to ask the user for co
EUVD-2026-121638
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB