Security Digest · Vulnerability record

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

aws-mcp-server AWS CLI Command Injection Remote Code Execution Vulnerability.

CVSS 9.8 Critical EPSS 2.3% · p83

Should you act?

Critical and remotely reachable

No known exploitation yet, but it is network-reachable without credentials. This signal is computed from CISA KEV, EPSS and CVSS data; it is not an editorial verdict.

  • No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
  • EPSS 2.3%, percentile 83: FIRST’s model estimates a 2.3% chance of exploitation activity in the next 30 days, higher than 83% of all scored CVEs (elevated). EPSS is a probability, not a verdict.
  • Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
  • Only applies if your dependency tree includes aws-mcp (PyPI) <= 1.7.0, no fixed version listed. Check your lockfile, including transitive dependencies.

What it is

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.

From the GitHub advisory

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.

Weakness type: CWE-78.

Product: aws-mcp (PyPI) · Assigned by: zdi · Published: 2026-04-11

Affected and fixed versions

EcosystemPackageVulnerableFirst fixed
PyPIaws-mcp<= 1.7.0none listed
VendorProductAffected versions (per CVE record)
aws-mcp-serveraws-mcp-server1.3.0

Severity scores

Scored byCVSSScoreVector
zdi3.09.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub3.19.8 CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Attack vector: network (remotely reachable)
  • Attack complexity: low
  • Privileges required: none (no login)
  • User interaction: none
  • Scope: unchanged

CVSS measures how bad a flaw is if exploited, not how likely exploitation is. Read it next to the exploitation data below.

Exploitation and urgency

  • CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
  • CISA SSVC assessment: exploitation none, automatable yes, technical impact total.
  • FIRST EPSS (model of 2026-10-21): 2.32% probability of exploitation activity in the next 30 days; percentile 83.

Timeline

  • — CVE record published by zdi
  • — GitHub-reviewed advisory GHSA-fgmx-xfp3-w28p published (critical)
  • — CVE record last updated

Sources and references

Original sources first. Version and fix details should always be confirmed against the vendor or project advisory.

Vulnerability records

  1. GitHub Advisory GHSA-fgmx-xfp3-w28p github.com
  2. CVE.org record CVE-2026-5059 cve.org
  3. NVD entry CVE-2026-5059 nvd.nist.gov

Other references from the CVE record and advisory

  1. ZDI-26-245 zerodayinitiative.com

Critical PyPI advisories · Today’s Security Digest