CVE-2026-87911 Read-only enforcement bypass enabling operating system command execution in the SQL validation component of Amazon awslabs postgres-mcp-server
CriticalCVSS 9.0
EPSS 1.7%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| AWS Labs postgres MCP Server | < 1.1.7 | 1.1.7 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| AWS Labs postgres MCP Server | < 1.1.7 | 1.1.7 |
References
- pypi.org patch
- aws.amazon.com vendor-advisory
- github.com third-party-advisory
- ENISA EUVD EUVD-2026-75127 third-party-advisory