RCE in AWS Labs Postgres Mcp Server
CVE-2026-87911
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.
Vulnerability class: Command Injection (OS Command Injection)
CVSS v3 metric
CVSS v3 base score 9.6 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H.
Affected products
Weakness classification (CWE)
References
- ff89ba41-3aa1-4d27-914a-91399e9639e5 (patch)
- ff89ba41-3aa1-4d27-914a-91399e9639e5 (vendor-advisory)
- ff89ba41-3aa1-4d27-914a-91399e9639e5 (third-party-advisory)
Frequently asked questions
- What is CVE-2026-87911?
- CVE-2026-87911 is a critical-severity vulnerability in AWS Labs Postgres Mcp Server, classified under OS Command Injection. CVSS score: 9.6/10. Published 2026-09-09.
- How severe is CVE-2026-87911?
- Critical severity. CVSS v3 base score is 9.6 out of 10.