AWS Labs postgres MCP Server
Read-only enforcement bypass enabling operating system command execution in the SQL validation component of Amazon awslabs postgres-mcp-server
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.1.7
Fixed in 1.1.7
Mitigation
Upgrade AWS Labs postgres MCP Server to 1.1.7 or later.
References
- Patch pypi.org/project/awslabs.postgres-mcp-server…
- Vendor advisory aws.amazon.com/security/security-bulletins/2026-10…
- Vendor advisory github.com/awslabs/mcp/security/advisories/GHS…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.