Skip to content

CVE-2026-5059 aws-mcp-server AWS CLI Command Injection Remote Code Execution Vulnerability

CriticalCVSS 9.8 EPSS 1.8%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
Cloud Platforms

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
pypi aws-mcp(PyPI) <= 1.7.0; = 1.5.4; = 1.5.5; = 1.5.6 +2 more after 1.7.0 Fixed
aws-mcp-server = 1.3.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
pypi aws-mcp(PyPI) <= 1.7.0 No fix listed
pypi aws-mcp(PyPI) = 1.5.4 No fix listed
pypi aws-mcp(PyPI) = 1.5.5 No fix listed
pypi aws-mcp(PyPI) = 1.5.6 No fix listed
pypi aws-mcp(PyPI) = 1.6.0 No fix listed
pypi aws-mcp(PyPI) = 1.7.0 No fix listed
aws-mcp-server = 1.3.0 No fix listed

References