A AegiFlow
CRITICALCVSS 9.8EPSS 1.9%

CVE-2026-5059

aws-mcp has a Command Injection Remote Code Execution Vulnerability

Published
2026-04-11
Modified
2026-10-27
EPSS percentile
80%
Aliases
GHSA-fgmx-xfp3-w28p
Sources
github-advisory

Summary

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

EcosystemPackageAffected versionsFixed versions
PyPIaws-mcp——

Remediation: No patched version is listed by GitHub.

References

Includes data from the GitHub Advisory Database, licensed under CC-BY 4.0.

CVE® is a registered trademark of The MITRE Corporation. CVE content reproduced under the CVE Terms of Use; copyright designation © MITRE.

EPSS scores provided by the FIRST.org Exploit Prediction Scoring System.