---
title: "CVE-2026-5059: aws-mcp has a Command Injection Remote Code Execution Vulnerability"
url: https://erroneo.us/security/cve/CVE-2026-5059/
description: "CVE-2026-5059 (aws-mcp (PyPI)): aws-mcp-server AWS CLI Command Injection Remote Code Execution Vulnerability. This vulnerability allows remote attackers to…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-04-11
date_modified: 2026-04-14
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-5059"
kev: false
cvss: 9.8
epss: 0.02319
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- 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.

## Affected packages

- PyPI `aws-mcp` <= 1.7.0 → fixed: none listed

## Affected products (CVE record)

- aws-mcp-server aws-mcp-server: 1.3.0

## Severity

- zdi CVSS 3.0: 9.8 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 3.1: 9.8 `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- 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.

## Sources

- [GitHub Advisory GHSA-fgmx-xfp3-w28p](https://github.com/advisories/GHSA-fgmx-xfp3-w28p)
- [CVE.org record CVE-2026-5059](https://www.cve.org/CVERecord?id=CVE-2026-5059)
- [NVD entry CVE-2026-5059](https://nvd.nist.gov/vuln/detail/CVE-2026-5059)
- [ZDI-26-245](https://www.zerodayinitiative.com/advisories/ZDI-26-245/)

---
Source page: https://erroneo.us/security/cve/CVE-2026-5059/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
