A critical command injection vulnerability, CVE-2026-87911, has been discovered in AWS's postgres-mcp-server, allowing attackers to execute arbitrary operating system commands. The flaw, which has a CVSS score of 9.6, lies in the server's handling of the `COPY ... TO PROGRAM` PostgreSQL command. While the fix has been available on PyPI since June, it went largely unnoticed until the AWS advisory was published. The vulnerability affects self-managed PostgreSQL instances where the database role has superuser privileges or is a member of `pg_execute_server_program`, as read-only transactions do not prevent this type of command execution. AI
IMPACT This vulnerability highlights the critical need for robust security in AI-powered tools that interact with databases, potentially impacting the adoption of such systems.
RANK_REASON The article details a vulnerability in a specific AWS product, the postgres-mcp-server, which is a tool for translating natural language to SQL.
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →