CVE-2026-5059
aws-mcp-server AWS CLI Command Injection Remote Code Execution …
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. Was ZDI-CAN-27969.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.zerodayinitiative.com/advisories/ZDI-26-245/
- nvd.nist.gov/vuln/detail/CVE-2026-5059
- www.zerodayinitiative.com/advisories/ZDI-26-245
- github.com/advisories/GHSA-fgmx-xfp3-w28p
- github.com/pypa/advisory-database/tree/main/vulns/aws-mcp/PYSEC-2026-288.yaml
- pypi.org/project/aws-mcp
- nvd.nist.gov/vuln/detail/CVE-2026-5059
- cve.org/CVERecord?id=CVE-2026-5059
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.