CVE-2026-87911
CRITICAL 9 ALL-YEARSAn 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.
Severe if exploited (CVSS 9), but no confirmed exploitation. Patch on a normal cadence.
Exploitation likelihood
1.7%chance of exploitation in 30 days · 78th percentile
Impact if exploited
9CVSS 4.0 · CRITICAL · CNA
- ConfidentialityHigh
- IntegrityHigh
- AvailabilityHigh
What an attacker needs
- ✓Access: Reachable over the network — no local access needed
- ✓Privileges: No account or privileges required
- ⚠User interaction: Succeeds with passive user activity
- ✓Complexity: No special conditions — reliably repeatable
- ⚠Requirements: Specific conditions must be present
✓ lowers the bar for an attacker · ⚠ raises it
Proof of concept
No public PoC is currently catalogued.
Search for new PoCs
Search GitHub now — results may be empty or unverified.
Tracked sources are checked weekly for the full archive, including PoCs published after the original disclosure. A later release appears after a tracked source lists it and a refresh succeeds.
Weakness (CWE)
- CWE-78: Improper neutralization of special elements used in an OS command ('OS command injection')
- CWE-184: Incomplete list of disallowed inputs
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
References and research data (JSON)
All CVSS metrics
- CRITICAL 9.6 v3.1 · CNA Primary
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H - CRITICAL 9 v4.0 · CNA Primary
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H - CRITICAL 9 v4.0 · NVD Secondary
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - CRITICAL 9.6 v3.1 · NVD Secondary
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
References
Patches & mitigations
- https://pypi.org/project/awslabs.postgres-mcp-server/1.1.7/ CVE record · AMZN · Updated 2026-09-09T19:37:17.985Z
NVD · CVE-2026-87911 · Updated 2026-09-10T15:53:23.707
Advisories
- https://aws.amazon.com/security/security-bulletins/2026-104-aws/ CVE record · AMZN · Updated 2026-09-09T19:37:17.985Z
NVD · CVE-2026-87911 · Updated 2026-09-10T15:53:23.707 - https://github.com/awslabs/mcp/security/advisories/GHSA-fph8-pg5w-78fv CVE record · AMZN · Updated 2026-09-09T19:37:17.985Z
NVD · CVE-2026-87911 · Updated 2026-09-10T15:53:23.707 - https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-75127 EUVD · EUVD-2026-75127
Sources: NVD · CVE.org · All sources and attribution · EPSS