Skip to content
Heist/ feed
Back to feed
Critical

aws-mcp has a Command Injection Remote Code Execution Vulnerability

Type: advisorySources: OSV

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.

Products
aws-mcp
Affected versions
1.5.4, 1.5.5, 1.5.6, 1.6.0, 1.7.0
Fixed versions
Not specified
CVEs
CVE-2026-5059
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 18:44 UTC · Revision 1

Source evidence

aws-mcp has a Command Injection Remote Code Execution Vulnerability

core-osv · Original source

Published 11 Apr 2026, 03:30 UTC

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.

osv:GHSA-fgmx-xfp3-w28p

aws-mcp

Fixed versions: Not specified

Complete source record
{
  "id": "577698f5e523cb6d645a523776e3cdd0f5991d7b718e7edbf9303edb89ed5995",
  "url": "https://osv.dev/vulnerability/GHSA-fgmx-xfp3-w28p",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "aws-mcp has a Command Injection Remote Code Execution Vulnerability",
    "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.",
    "evidence": "osv:GHSA-fgmx-xfp3-w28p",
    "products": [
      {
        "name": {
          "value": "aws-mcp",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.5.4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.5.5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.5.6",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.6.0",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.7.0",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "GHSA-fgmx-xfp3-w28p",
      "aliases": [
        "CVE-2026-5059",
        "GHSA-fgmx-xfp3-w28p",
        "PYSEC-2026-288"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "1.7.0"
                }
              ]
            }
          ],
          "package": {
            "name": "aws-mcp",
            "purl": "pkg:pypi/aws-mcp",
            "ecosystem": "PyPI"
          },
          "versions": [
            "1.5.4",
            "1.5.5",
            "1.5.6",
            "1.6.0",
            "1.7.0"
          ],
          "database_specific": {
            "source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-fgmx-xfp3-w28p/GHSA-fgmx-xfp3-w28p.json"
          }
        }
      ],
      "modified": "2026-10-27T15:30:05.495099034Z",
      "provider": "osv",
      "references": [
        "https://nvd.nist.gov/vuln/detail/CVE-2026-5059",
        "https://github.com/alexei-led/aws-mcp-server",
        "https://github.com/pypa/advisory-database/tree/main/vulns/aws-mcp/PYSEC-2026-288.yaml",
        "https://pypi.org/project/aws-mcp",
        "https://www.zerodayinitiative.com/advisories/ZDI-26-245"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-78"
        ],
        "severity": "CRITICAL",
        "github_reviewed": true,
        "nvd_published_at": "2026-04-11T01:16:18Z",
        "github_reviewed_at": "2026-04-14T23:42:39Z"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-5059",
        "evidence": "/aliases"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/database_specific/severity"
  },
  "source_id": "core-osv",
  "document_id": 462837,
  "published_at": "2026-04-11T03:30:30+00:00"
}