CVE-2025-5277 Command injection in aws-mcp-server

Critical 9.4 Published Updated

An attacker can execute arbitrary commands on the host system by crafting a malicious prompt accessed by the MCP client.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-5277?

CVE-2025-5277 is a critical command injection vulnerability in alexei-led aws-mcp-server, published on 28 May 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

aws-mcp-server MCP server is vulnerable to command injection. An attacker can craft a prompt that once accessed by the MCP client will run arbitrary commands on the host system.

Weakness: CWE-78

Which versions are affected by CVE-2025-5277?

How do I fix CVE-2025-5277?

No fix has been published for CVE-2025-5277 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2025-5277 being exploited?

There is no known exploitation of CVE-2025-5277 in the wild and no public exploit code.

Sources

Is CVE-2025-5277 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free