Vulnerability · Published Apr 11, 2026 · Assigned by zdi

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

Critical 9.8

In plain English

A critical-severity OS command injection in aws-mcp-server from aws-mcp-server. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.9% (higher than 80% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code.

Severity (CVSS 3.0)9.8Critical
Exploit odds (30 days)1.9%top 20.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling1Public PoC

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIaws-mcpno fix listedGHSA-fgmx-xfp3-w28p
PyPIaws-mcpno fix listedPYSEC-2026-288

Affected products (as reported)

VendorProductVersions
aws-mcp-server aws-mcp-server 1.3.0

Weakness: CWE-78 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References