CVE-2026-5059
CRITICALaws-mcp-server AWS CLI Command Injection Remote Code Execution Vulnerability
Title source: cnaExploitation Summary
EIP tracks 2 public exploits for CVE-2026-5059. PoCs published by adminlove520, venom203020.
AI-analyzed exploit summary The repository provides a detailed technical analysis of CVE-2026-5059, explaining the root cause (shell=True in subprocess.run) and the incomplete validation in security.py. It contrasts the vulnerable version with the patched version (v1.7.0), which uses shell=False and OS-level sandboxing.
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.
Exploits (2)
The repository provides a detailed technical analysis of CVE-2026-5059, explaining the root cause (shell=True in subprocess.run) and the incomplete validation in security.py. It contrasts the vulnerable version with the patched version (v1.7.0), which uses shell=False and OS-level sandboxing.
This repository provides a detailed technical analysis of CVE-2026-5059, explaining the root cause (shell=True in subprocess.run) and the incomplete validation in the vulnerable version, contrasted with the fixed version's use of shell=False and OS-level sandboxing.
References (1)
Scores
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H