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 April 14, 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/alexei-led/aws-mcp-server
  • nvd.nist.gov/vuln/detail/CVE-2026-5059
  • 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. Learn more about Dependency Scanning →

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 Sat, 09 May 2026 12:20:21 +0000.