{"id":"CVE-2026-5059","aliases":["EUVD-2026-21656","GHSA-fgmx-xfp3-w28p","PYSEC-2026-288"],"status":"published","title":"aws-mcp-server AWS CLI 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":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01815,"percentile":0.78828,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-78"],"published":"2026-04-11T00:15:02Z","modified":"2026-10-27T15:30:05Z","exploits":[{"source":"pocgithub","id":"pwn0x000/CVE-2026-5059-poc","title":"pwn0x000/CVE-2026-5059-poc","date":"2026-04-16","url":"https://github.com/pwn0x000/CVE-2026-5059-poc"}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"aws-mcp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.7.0"}]}]},{"source":"osv","ecosystem":"PyPI","package":"aws-mcp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.7.0"}]}],"versions":["1.5.4","1.5.5","1.5.6","1.6.0","1.7.0"]},{"source":"osv","ecosystem":"PyPI","package":"aws-mcp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"1.7.0"}]}],"versions":["1.5.4","1.5.5","1.5.6","1.6.0","1.7.0"]}],"products":[{"vendor":"aws-mcp-server","product":"aws-mcp-server"}],"references":[{"url":"https://www.zerodayinitiative.com/advisories/ZDI-26-245/","tags":["x_research-advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5059","tags":["advisory"]},{"url":"https://www.zerodayinitiative.com/advisories/ZDI-26-245","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/aws-mcp/PYSEC-2026-288.yaml","tags":["web"]},{"url":"https://pypi.org/project/aws-mcp","tags":["web","package"]},{"url":"https://github.com/advisories/GHSA-fgmx-xfp3-w28p","tags":["advisory"]},{"url":"https://github.com/alexei-led/aws-mcp-server","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-5059","title":"aws-mcp-server AWS CLI 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.","status":"published","published":"2026-04-11T00:15:02.92Z","modified":"2026-04-13T17:30:38.053Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"cna"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T13:39:39.001586Z"}],"euvd":[{"id":"EUVD-2026-21656","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.","status":"published","published":"2026-04-11T00:15:02Z","modified":"2026-04-13T17:30:38Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T19:24:27.467761Z"}],"ghsa":[{"id":"GHSA-fgmx-xfp3-w28p","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.","status":"published","published":"2026-04-11T03:30:30Z","modified":"2026-10-27T15:22:51Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:41:37.912288Z"}],"nvd":[{"id":"CVE-2026-5059","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.","status":"published","published":"2026-04-11T01:16:18.293Z","modified":"2026-06-17T10:58:22.543Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:12:14.37744Z"}],"osv":[{"id":"GHSA-fgmx-xfp3-w28p","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.","status":"published","published":"2026-04-11T03:30:30Z","modified":"2026-10-27T15:30:05.495099034Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:46:46.39441Z"},{"id":"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.","status":"published","published":"2026-06-29T11:50:47.676407Z","modified":"2026-07-01T20:22:49.598545Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:52:56.429374Z"}]}}
