ZDI-26-246: (0Day) aws-mcp-server Command Injection Remote Code Execution Vulnerability
Published Mar 30, 2026
·Updated
This vulnerability allows remote attackers to execute arbitrary code on affected installations of aws-mcp-server. Authentication is not required to exploit this vulnerability. The 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.
Other sources
This vulnerability allows remote attackers to execute arbitrary code on affected installations of aws-mcp-server. Authentication is not required to exploit this vulnerability. The ZDI has assigned a CVSS rating of 9.8. The following CVEs are assigned: CVE-2026-5058.
— ZDI
Affected Software
2 affected components
Amazon aws-mcp-server
aws-mcp-server aws-mcp-server
Event History
Mar 30, 2026
Advisory Published
via ZDI·05:00 AM
Data Sourced
via ZDI·05:00 AM
Description
Apr 11, 2026
Advisory Published
via ZDI·01:00 AM
Data Sourced
via ZDI·01:00 AM
SeverityAffected Software