# CVE-2026-5059: aws-mcp-server AWS CLI Command Injection Remote Code Execution Vulnerability

- Severity: Critical 9.8 (CVSS:3.0, scored by zdi) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.45%, higher than 74% of CVEs (2026-12-01)
- Published: 2026-04-11T00:15:02.920Z
- Modified: 2026-10-27T15:30:05.495Z
- Also known as: GHSA-fgmx-xfp3-w28p, PYSEC-2026-288
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: zdi

## Description

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.

(As written by CVE List.)

## Affected

- aws-mcp-server aws-mcp-server: 1.3.0
- aws-mcp (PyPI): up to 1.7.0

## Every score

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

## References

- <https://www.zerodayinitiative.com/advisories/ZDI-26-245/>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-5059> (advisory)
- <https://github.com/alexei-led/aws-mcp-server> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/aws-mcp/PYSEC-2026-288.yaml> (web)
- <https://pypi.org/project/aws-mcp> (package, web)
- <https://www.zerodayinitiative.com/advisories/ZDI-26-245> (web)
- <https://github.com/advisories/GHSA-fgmx-xfp3-w28p> (advisory)

## Sources

- CVE List: [CVE-2026-5059](https://www.cve.org/CVERecord?id=CVE-2026-5059), CVE Terms of Use, modified 2026-04-13
- GitHub Advisory Database: [GHSA-fgmx-xfp3-w28p](https://github.com/advisories/GHSA-fgmx-xfp3-w28p), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-5059](https://nvd.nist.gov/vuln/detail/CVE-2026-5059), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-288](https://osv.dev/vulnerability/PYSEC-2026-288), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2026-5059 · Whole record: https://cve.day/CVE-2026-5059.json · Rebuilt by cve.day 2026-11-25T22:59:18.559Z
