ZDI-26-245: (0Day) 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. 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-5059.
— ZDI
Affected Software
Event History
Frequently Asked Questions
What is the severity of ZDI-26-245?
ZDI-26-245 is classified as a critical vulnerability due to its potential for remote code execution.
How do I fix ZDI-26-245?
To fix ZDI-26-245, update the aws-mcp-server software to the latest version provided by the vendor.
What are the consequences of exploiting ZDI-26-245?
Exploiting ZDI-26-245 allows remote attackers to execute arbitrary code on affected systems without authentication.
Which versions of aws-mcp-server are affected by ZDI-26-245?
All versions of aws-mcp-server are potentially affected by the ZDI-26-245 vulnerability.
Is authentication required to exploit ZDI-26-245?
No, authentication is not required to exploit the ZDI-26-245 vulnerability.