CVE-2026-87911
9.6
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| AWS | AWS Labs postgres MCP Server | 0 < 1.1.7 | affected |
Weaknesses
- CWE-78: CWE-78 Improper neutralization of special elements used in an OS command ('OS command injection')
- CWE-184: CWE-184 Incomplete list of disallowed inputs
References
- https://pypi.org/project/awslabs.postgres-mcp-server/1.1.7/
- https://aws.amazon.com/security/security-bulletins/2026-104-aws/
- https://github.com/awslabs/mcp/security/advisories/GHSA-fph8-pg5w-78fv
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.