Advisory

GHSA-fgmx-xfp3-w28p

Also known as: CVE-2026-5059, PYSEC-2026-288

Summary

aws-mcp has a Command Injection Remote Code Execution Vulnerability

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-04-11 03:30 UTC
Modified
2026-10-27 15:30 UTC

Affected packages and fixes

aws-mcp

PyPI · All systems

Affected

  • introduced 0, last affected 1.7.0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences