Skip to main content

pgEdge Postgres MCP CVE-2026-125322

| EUVDEUVD-2026-121638 MEDIUM
SQL Injection (CWE-89)
2026-11-10 GitHub_M
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach MCP server and issue tool calls
  2. Delivery
    Craft count_rows where clause with boolean subquery
  3. Exploit
    Use returned row count as true/false oracle
  4. Execution
    Enumerate another table character-by-character
  5. Impact
    Exfiltrate 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pgedge-postgres-mcp < 1.1.0

Affected Packages

euvd pgedge_postgres_mcp fix: 1.1.0

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

Vendor (GitHub_M) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Nov 10, 2026 - 19:20 EUVD

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

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Low
niche, recently introduced PostgreSQL MCP server; limited production footprint
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy