Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. aws-mcp
  4. ›
  5. CVE-2026-5059

CVE-2026-5059: aws-mcp has a Command Injection Remote Code Execution Vulnerability

April 11, 2026 (updated October 27, 2026)

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.

References

  • github.com/advisories/GHSA-fgmx-xfp3-w28p
  • github.com/pypa/advisory-database/tree/main/vulns/aws-mcp/PYSEC-2026-288.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-5059
  • pypi.org/project/aws-mcp
  • www.zerodayinitiative.com/advisories/ZDI-26-245

Code Behaviors & Features

Detect and mitigate CVE-2026-5059 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 1.7.0

Solution

Unfortunately, there is no solution available yet.

Impact 9.8 CRITICAL

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

pypi/aws-mcp/CVE-2026-5059.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:22 +0000.