CVE-2026-87911 Details
Description
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.
A command injection vulnerability has been identified in the SQL validation component of Amazon awslabs postgres-mcp-server, versions prior to 1.1.7. This vulnerability allows an unauthenticated actor to execute operating system commands on the host of a self-managed PostgreSQL server. The issue arises in the default read-only mode, where the SQL validation component fails to properly restrict certain SQL commands that can perform system-level operations. Exploitation involves crafting a COPY ... TO PROGRAM statement that is processed when an authenticated user interacts with the MCP server.
Users should upgrade to Amazon awslabs postgres-mcp-server version 1.1.7 or later. For those using a self-managed PostgreSQL deployment, it is recommended to connect the MCP server using a dedicated Postgres role with minimal privileges, avoiding superuser roles. Detailed instructions for creating a suitable role and managing permissions are available in the official advisory.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 9, 2026CISA-ADP
Assessed Sep 10, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://aws.amazon.com/security/security-bulletins/2026-104-aws/ | AMZN | AdvisoryRemedyVendor |
| https://github.com/awslabs/mcp/security/advisories/GHSA-fph8-pg5w-78fv | AMZN | AdvisoryRemedyVendor |
| https://pypi.org/project/awslabs.postgres-mcp-server/1.1.7/ | AMZN | ProductVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-184 | Incomplete List of Disallowed Inputs | AMZN |
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | AMZN |
Affected Products
| Product | Versions |
|---|---|
| Amazon awslabs postgres-mcp-server | < 1.1.7 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 10, 2026 | CVE Modified | CISA-ADP |
| Sep 9, 2026 | New CVE Received | AMZN |
Volerion