PYSEC-2026-288
Vulnerability from pysec - Published: 2026-06-29 11:50 - Updated: 2026-07-01 20:22aws-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.
| Name | purl | aws-mcp | pkg:pypi/aws-mcp |
|---|
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "aws-mcp",
"purl": "pkg:pypi/aws-mcp"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "1.7.0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.5.4",
"1.5.5",
"1.5.6",
"1.6.0",
"1.7.0"
]
}
],
"aliases": [
"CVE-2026-5059",
"GHSA-fgmx-xfp3-w28p"
],
"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.\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.",
"id": "PYSEC-2026-288",
"modified": "2026-07-01T20:22:49.598545Z",
"published": "2026-06-29T11:50:47.676407Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-5059"
},
{
"type": "PACKAGE",
"url": "https://github.com/alexei-led/aws-mcp-server"
},
{
"type": "WEB",
"url": "https://www.zerodayinitiative.com/advisories/ZDI-26-245"
},
{
"type": "PACKAGE",
"url": "https://pypi.org/project/aws-mcp"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-fgmx-xfp3-w28p"
}
],
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
],
"summary": "aws-mcp has a Command Injection Remote Code Execution Vulnerability"
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.