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.

Severity (CVSS)

Base score9
SeverityCritical
VersionCVSS 4.0
VectorCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Provided byCNA

Weaknesses

  • CWE-78 — CWE-78 Improper neutralization of special elements used in an OS command ('OS command injection')
  • CWE-184 — CWE-184 Incomplete list of disallowed inputs

Affected products

VendorProductVersions
AWSAWS Labs postgres MCP Server0 to <1.1.7

References

Authoritative sources

This page is a snapshot. For the latest enrichment and updates, view the record on CVE.org or the NVD.

Generated from the official CVE List on 10 Sep 2026 07:03 UTC.