{"id":"GHSA-fgmx-xfp3-w28p","aliases":["CVE-2026-5059","PYSEC-2026-288"],"title":"aws-mcp has a Command Injection Remote Code Execution Vulnerability","description":"aws-mcp-server AWS CLI Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to execute arbitrary code on affected installations of aws-mcp-server. Authentication is not required to exploit this vulnerability.\n\nThe specific flaw exists within the handling of the allowed commands list. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the MCP server. Was ZDI-CAN-27969.","severity":"critical","score":9.8,"published":"2026-04-11T03:30:30.000Z","modified":"2026-10-27T15:30:05.495Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"PyPI","name":"aws-mcp","ranges":[{"events":[{"introduced":"0"},{"last_affected":"1.7.0"}],"type":"ECOSYSTEM"}],"versions":["1.5.4","1.5.5","1.5.6","1.6.0","1.7.0"],"fixed":[]}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2026-5059","https://github.com/alexei-led/aws-mcp-server","https://github.com/pypa/advisory-database/tree/main/vulns/aws-mcp/PYSEC-2026-288.yaml","https://pypi.org/project/aws-mcp","https://www.zerodayinitiative.com/advisories/ZDI-26-245"],"sources":[{"name":"OSV","id":"GHSA-fgmx-xfp3-w28p","modified":"2026-10-27T15:30:05.495099034Z","url":"https://osv.dev/vulnerability/GHSA-fgmx-xfp3-w28p"}],"assessments":[{"source":"OSV","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8}]}