CVE-2026-87911 Command injection in AWS Labs postgres MCP Server

Critical 9.0 Published Updated

An attacker can execute OS commands on the host by bypassing read-only SQL validation in the PostgreSQL MCP server.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2026-87911?

CVE-2026-87911 is a critical command injection vulnerability in AWS Labs postgres MCP Server, published on 9 Sep 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-78, CWE-184

Which versions are affected by CVE-2026-87911?

How do I fix CVE-2026-87911?

No fix has been published for CVE-2026-87911 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-87911 being exploited?

There is no known exploitation of CVE-2026-87911 in the wild and no public exploit code.

Sources

Is CVE-2026-87911 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free