{"schemaVersion":3,"id":"CVE-2026-87911","aliases":[],"status":"published","duplicateOf":null,"title":null,"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.\n\n\n\nTo remediate this issue, users should upgrade to version 1.1.7 or later.","dates":{"published":"2026-09-09T19:35:46.136Z","modified":"2026-09-10T13:53:27.245Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.6,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":9,"severity":"critical","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.6,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":9,"severity":"critical","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/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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.6,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.01738,"percentile":0.77328,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0.7519999999999999,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00986},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01738,"percentile":0.77328}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00986,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01738,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01738,"percentile":0.77328}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","description":"The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs","description":"The product implements a protection mechanism that relies on a list of inputs (or properties of inputs) that are not allowed by policy or otherwise require other action to neutralize before additional processing takes place, but the list is incomplete.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/184.html"}],"affected":[{"vendor":"aws","product":"aws labs postgres mcp server","name":"AWS Labs postgres MCP Server","label":"aws labs postgres mcp server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.1.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.1.7","eol":null,"hubHref":"/vendor/aws/aws_labs_postgres_mcp_server"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://pypi.org/project/awslabs.postgres-mcp-server/1.1.7/","label":"pypi.org/project/awslabs.postgres-mcp-server/1.1.7/","hostname":"pypi.org","tags":["Patch"]},{"url":"https://aws.amazon.com/security/security-bulletins/2026-104-aws/","label":"aws.amazon.com/security/security-bulletins/2026-104-aws/","hostname":"aws.amazon.com","tags":["Vendor Advisory"]},{"url":"https://github.com/awslabs/mcp/security/advisories/GHSA-fph8-pg5w-78fv","label":"github.com/awslabs/mcp/security/advisories/GHSA-fph8-pg5w-78fv","hostname":"github.com","tags":["Third Party Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-09-09T19:35:46.136Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-10T13:53:27.245Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T09:54:12.046Z","stale":false,"partial":false}}