ZDI-CAN-27968: ZDI-26-246: (0Day) aws-mcp-server 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. 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
Event History
Frequently Asked Questions
What is the severity of ZDI-CAN-27968?
ZDI-CAN-27968 is classified as a critical vulnerability due to its potential for remote code execution without authentication.
How do I fix ZDI-CAN-27968?
To fix ZDI-CAN-27968, you should update the aws-mcp-server to the latest patched version provided by the vendor.
What systems are affected by ZDI-CAN-27968?
ZDI-CAN-27968 affects installations of aws-mcp-server across various versions, as the vulnerability exists within the server itself.
How can an attacker exploit ZDI-CAN-27968?
An attacker can exploit ZDI-CAN-27968 by sending specially crafted input to the aws-mcp-server, allowing them to execute arbitrary commands.
Is authentication required to exploit ZDI-CAN-27968?
No, authentication is not required to exploit ZDI-CAN-27968, making it particularly dangerous for exposed systems.