CVE-2026-5059GHSA-fgmx-xfp3-w28pPYSEC-2026-288
aws-mcp has a Command Injection Remote Code Execution Vulnerability
aws-mcp-server aws-mcppipContainers & cloud
CVSS
9.8CriticalExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)1.91%Chance of exploitation activity in the next 30 days, higher than 79% of CVEs. Scored 27 Oct 2026FIRST EPSS
Fixed inNone listedNo source names a fixed version. Check the vendor advisory below
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
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.
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.
Text from GitHub Advisory Database
Affected versions 8
- aws-mcp, pip<= 1.7.0GitHub
- aws-mcp-serveraffected: 1.3.0CVE List
- aws-mcp, PyPIfrom first release, through 1.7.0OSV
- aws-mcp, PyPI1.5.4OSV
- aws-mcp, PyPI1.5.5OSV
- aws-mcp, PyPI1.5.6OSV
- aws-mcp, PyPI1.6.0OSV
- aws-mcp, PyPI1.7.0OSV
References 6
- zerodayinitiative.com/advisories/ZDI-26-245Advisoryvia GitHub
- github.com/pypa/advisory-database/tree/main/vulns/aws-mcp/PYSEC-2026-288.yamlAdvisoryvia GitHub
- github.com/advisories/GHSA-fgmx-xfp3-w28pAdvisoryvia GitHub
- zerodayinitiative.com/advisories/ZDI-26-245/Advisoryvia CVE List
- nvd.nist.gov/vuln/detail/CVE-2026-5059Referencevia GitHub
- pypi.org/project/aws-mcpReferencevia GitHub