mcp-cve-project

CVE-2026-87911 | Read-only enforcement bypass enabling operating system command execution in the SQL validation component of Am | Critical |

CVE Information

Field Value
CVE / NVD CVE-2026-87911
Date (index) 2026-09-09
Affected product (index) Read-only enforcement bypass enabling operating system command execution in the SQL validation component of Am
GHSA ID GHSA-fph8-pg5w-78fv
OWASP MCP Top 10 (2025) MCP05 — Command Injection & Execution
Published / disclosed 2026-09-09
Ecosystem PyPI
Component AWS/AWS Labs postgres MCP Server
EPSS score 0.017380000 (FIRST EPSS, 2026-11-09)
CVSS score 9.0 CRITICAL CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
CWE CWE-78, CWE-184
Affected versions < 1.1.7
Fixed versions 1.1.7
Fix status Patched
Exploit status Public advisory. This note does not include exploit steps.
Notes Updated on 2026-11-09 from the published CVE record and FIRST EPSS.

CVE Breakdown


What is the vulnerability?

An OS command injection weakness in the read-only enforcement of the SQL validation component in Amazon awslabs postgres-mcp-server before 1.1.7 might allow an unauthenticated actor to execute operating system commands on the host of a self-managed PostgreSQL server by placing a crafted COPY … TO PROGRAM statement into content that is processed when an authenticated user interacts with the MCP server in its default read-only mode. To remediate this issue, users should upgrade to version 1.1.7 or later.

Attack prerequisites / exposure

Depends on deployment. Typical MCP cases are a reachable HTTP or SSE listener, a malicious remote MCP server, a poisoned project configuration, or a person opening attacker-influenced content. Developer workstations and shared runners are high-value when the server runs with host access.

CVE is because of what bug?

The published weakness mapping is CWE-78, CWE-184. Use the linked advisory for the upstream root cause.

MCP-specific impact / why it matters

MCP connects a model to tools, files, and credentials on a host or network. A flaw in transport checks, path checks, command handling, or token binding can become code execution, credential exposure, or access to another user’s session.

Where was the bug? (source + snippet)

File and function names belong in the linked upstream advisory and patch. This index does not repeat exploit inputs.

Fix / Remediation

Apply the vendor’s patched release or commit. Until then, keep the affected MCP listener off untrusted networks and require authentication on HTTP transports.

Upstream fix (open source)

Workarounds / mitigations

Detection / verification