Skip to main content

postgres-mcp-server EUVDEUVD-2026-71748

| CVE-2026-85787 HIGH
Incomplete List of Disallowed Inputs (CWE-184)
2026-09-04 AMZN GHSA-f4f4-39r8-8gj4
7.1
CVSS 4.0 · Vendor: AMZN
View

Attack ChainAIDerived

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

  1. Access
    Pre-position crafted SQL in MCP data source
  2. Delivery
    Authenticated user triggers MCP query
  3. Exploit
    MCP server processes attacker content
  4. Execution
    Incomplete denylist fails to block crafted SQL
  5. Impact
    Write operation executes on PostgreSQL backend

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
Exploitation Conditions

Exploitation requires two sequential conditions: first, the attacker must be able to pre-position crafted SQL content in a source that the postgres-mcp-server will later read and process (e.g., a database table, a tool-response payload, or any input channel feeding the MCP server); second, an authenticated user must trigger an MCP interaction that causes the server to process that attacker-controlled content. The attacker themselves requires no credentials or privileges against the MCP server - only the ability to write to a data source it consumes. Deployments where all data sources are strictly controlled and isolated from external write access significantly reduce exploitability. The read-only enforcement bypass applies specifically to the SQL validation denylist component in versions prior to 1.1.7.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N) scores 7.1, reflecting network-reachable exploitation with no attacker privileges required but mandatory authenticated-user interaction. Real-world exploitability depends on whether an attacker can pre-position crafted SQL content in sources consumed by the MCP server before a legitimate user triggers a query - a condition that adds meaningful friction relative to a direct injection flaw. No EPSS data was provided and the CVE is not listed in CISA KEV, suggesting no confirmed active exploitation. The integrity-only impact (VI:H, C:N/A:N) means the blast radius is data modification rather than exfiltration or system compromise, which limits but does not eliminate urgency. Risk is elevated for deployments where the MCP server operates over external or untrusted data sources, and reduced in tightly controlled single-tenant environments. The 'Information Disclosure' tag in the input metadata is incorrect given the C:N/VI:H vector - this is an integrity violation, not a confidentiality breach.

Exploit ScenarioDerived

An attacker places a crafted SQL statement - one that bypasses the incomplete denylist, such as a DELETE or UPDATE command disguised through comment injection or less-common SQL syntax - into a database column or tool-response payload accessible to the MCP server. When a legitimate authenticated user subsequently issues a natural-language query that causes the MCP server to fetch and process that content, the crafted SQL executes against the PostgreSQL backend, modifying data outside the intended read-only scope. No public exploit code has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 04, 2026

Incomplete SQL validation denylist in Amazon awslabs postgres-mcp-server before 1.1.7 allows an unauthenticated attacker to bypass read-only enforcement and perform write operations against a PostgreSQL database by embedding crafted SQL in content processed when an authenticated user interacts with the MCP server. The vulnerability (CWE-184) exploits the incomplete list of disallowed SQL constructs, effectively turning user-triggered MCP interactions into a vector for unauthorized data modification with high integrity impact (VI:H) and no confidentiality or availability effect. No public exploit code has been identified at time of analysis; a vendor-released patch is available at version 1.1.7.

RemediationAI

Upgrade to awslabs.postgres-mcp-server version 1.1.7 or later via pip: 'pip install --upgrade awslabs.postgres-mcp-server'. The patched release is available on PyPI (https://pypi.org/project/awslabs.postgres-mcp-server/1.1.7/) and the vendor advisory is at https://aws.amazon.com/security/security-bulletins/2026-101-aws/. If immediate upgrade is not possible, restrict the MCP server to trusted, internally controlled data sources only and deny it access to external or user-supplied content that could contain injected SQL; note this does not eliminate the vulnerability but reduces attacker pre-positioning opportunities. Additionally, ensure the PostgreSQL user account used by the MCP server is configured with the minimum necessary privileges at the database level (e.g., GRANT SELECT only on specific tables), providing a defense-in-depth layer that can limit the practical impact of a successful bypass.

Affected VersionsENISA

postgres-mcp-server 0 <1.1.7

Affected Packages

euvd postgres_mcp_server fix: 1.1.7

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

postgres-mcp-server is an AWS awslabs Model Context Protocol (MCP) server that exposes PostgreSQL database operations as AI agent tools. The server enforces a read-only security boundary via a SQL validation component that maintains an allowlist/denylist of permitted SQL constructs. CWE-184 (Incomplete List of Disallowed Inputs) describes a flaw where the denylist fails to enumerate all dangerous SQL patterns, enabling bypass of the intended read-only restriction. The affected CPE is cpe:2.3:a:amazon:postgres-mcp-server:*:*:*:*:*:*:*:* for all versions prior to 1.1.7. The MCP architecture means that database-resident content or tool responses can be crafted by an attacker and later processed during legitimate authenticated user sessions, making this an injection-via-content attack path analogous to prompt injection in LLM pipelines.

Know when Amazon 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 (AMZN) PRIMARY 7.1 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 6.5 MEDIUM

Network-reachable, no attacker privileges, but authenticated user must trigger the interaction (UI:R); integrity-only impact with no confidentiality or availability effect.

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

Primary rating from Vendor (AMZN).

CVSS VectorVendor: AMZN

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

An incomplete list of disallowed inputs in the SQL validation component in Amazon awslabs postgres-mcp-server before version 1.1.7 might allow an unauthenticated actor to modify data beyond the read-only scope by placing crafted SQL into the content that is submitted when an authenticated user interacts with the MCP server.

To remediate this issue, users should upgrade to version 1.1.7 or above.

Executive ViewAI

Why It Matters

Amazon's postgres-mcp-server (versions before 1.1.7) contains an incomplete SQL validation flaw that enables attackers to bypass read-only protections and execute unauthorized database write operations. Organizations using this tool for PostgreSQL access face direct risk to data integrity, as attackers can modify database records without authentication through crafted SQL injection.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Low
specialized AI/MCP agent tool, limited production footprint
Data Quality
4 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 HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
High

Priority Score

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

More in Amazon

View all
CVE-2023-44487 HIGH POC
7.5 Oct 10

Denial of service against HTTP/2 server implementations allows remote unauthenticated attackers to exhaust server resour

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

CVE-2024-28056 CRITICAL POC
9.8 Apr 15

Amazon AWS Amplify CLI before 12.10.1 incorrectly configures the role trust policy of IAM roles associated with Amplify

CVE-2022-25809 CRITICAL POC
9.8 Feb 24

Improper Neutralization of audio output from 3rd and 4th Generation Amazon Echo Dot devices allows arbitrary voice comma

CVE-2021-44833 CRITICAL POC
9.8 Dec 12

The CLI 1.0.0 for Amazon AWS OpenSearch has weak permissions for the configuration file. Rated critical severity (CVSS 9

CVE-2019-3984 CRITICAL POC
9.8 Dec 31

Blink XT2 Sync Module firmware prior to 2.13.11 allows remote attackers to execute arbitrary commands on the device due

CVE-2019-3989 CRITICAL POC
9.8 Dec 11

Blink XT2 Sync Module firmware prior to 2.13.11 allows remote attackers to execute arbitrary commands on the device due

CVE-2023-35165 HIGH POC
8.8 Jun 23

AWS Cloud Development Kit (AWS CDK) is an open-source software development framework to define cloud infrastructure in c

CVE-2022-31115 HIGH POC
8.8 Jun 30

opensearch-ruby is a community-driven, open source fork of elasticsearch-ruby. Rated high severity (CVSS 8.8), this vuln

CVE-2022-0070 HIGH POC
8.8 Apr 19

Incomplete fix for CVE-2021-3100. Rated high severity (CVSS 8.8), this vulnerability is low attack complexity. Public ex

CVE-2021-43638 HIGH POC
8.8 Dec 07

Amazon Amazon WorkSpaces agent is affected by Integer Overflow. Rated high severity (CVSS 8.8), this vulnerability is lo

CVE-2021-43637 HIGH POC
8.8 Dec 07

Amazon WorkSpaces agent is affected by Buffer Overflow. Rated high severity (CVSS 8.8), this vulnerability is low attack

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