Skip to content
OpenAdvisories
Critical · 9.8 Public exploit CVE-2026-5059 EUVD-2026-21656GHSA-fgmx-xfp3-w28pPYSEC-2026-288

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

Published Apr 11, 2026 · Updated Apr 13, 2026 · Assigned by zdi

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.

Affected products

VendorProductAffectedFixed
aws-mcp-server aws-mcp-server 1.3.0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI aws-mcp <= 1.7.0 — GHSA-fgmx-xfp3-w28p

References