Skip to content
CriticalVulnerability

CVE-2026-87911: awslabs postgres-mcp-server OS command injection in read-only SQL validation

Identifier
CVE-2026-87911
Published
Record updated
View JSON

Summary

An OS command injection weakness in the read-only enforcement of the SQL validation component of Amazon awslabs postgres-mcp-server before 1.1.7 may let an unauthenticated actor run operating system commands on the host of a self-managed PostgreSQL server. The attacker places a crafted COPY ... TO PROGRAM statement into content that an authenticated user processes through the MCP server in its default read-only mode.

Mitigation

Upgrade to version 1.1.7 or later.