AWS MCP Server Flaws Expose File Read and Remote Code Execution Risks
Emerging Technology Risk · 7 sources · Updated 5mo ago · First seen Mar 17, 2026

Researchers disclosed multiple security flaws affecting AWS MCP components, including a local file inclusion bug in the AWS Remote MCP Server and a critical command injection issue in aws-mcp-server. Varonis said authenticated users could abuse AWS CLI shorthand syntax, specifically the @= operator passed through the aws___call_aws tool, to read arbitrary files from the underlying host even when FileAccessMode=NO_ACCESS was enabled. AWS assigned CVE-2026-4270 to the file access restriction bypass and said the issue was fixed in aws-api-mcp-server version 1.3.9; the exposure affected the public endpoint aws-mcp.us-east-1.api.aws as well as self-hosted or forked deployments.
A separate flaw, tracked as CVE-2026-5058 and published by Trend Micro's Zero Day Initiative as ZDI-26-246, allows unauthenticated remote code execution in aws-mcp-server because user-supplied input in the allowed-commands list is not properly validated before being used in a system call. ZDI rated the bug CVSS 9.8 and said successful exploitation lets attackers run arbitrary code in the MCP server context; the advisory was released as a 0-day after the vendor rejected the report. The disclosures landed alongside another AWS bulletin for CVE-2026-4269, an improper S3 ownership verification issue in the Bedrock AgentCore Starter Toolkit, underscoring broader security concerns around MCP-related tooling and the need for immediate patching and review of derivative implementations.
Why it matters
Impact assessment
AWS MCP-related deployments face two distinct high-risk exposures: authenticated arbitrary file read in AWS Remote MCP Server and unauthenticated remote code execution in the community aws-mcp-server project. The likely impact includes credential theft, host compromise, AWS account abuse, and disclosure of sensitive files or environment details, with greatest risk to engineering teams, cloud operations, and organizations exposing MCP services over networks.
Severity and scope
- CVE-2026-4270 affects AWS Remote MCP Server deployments and was reproduced against the public endpoint
aws-mcp.us-east-1.api.aws, showing real-world exposure beyond self-hosted instances. - CVE-2026-5058 enables unauthenticated remote code execution in
aws-mcp-serverwith CVSS 9.8, creating immediate risk of full server compromise. - CVE-2026-5059 is a related unauthenticated command injection issue in the community-maintained
aws-mcp-server, also rated CVSS 9.8, with potential theft of mounted AWS credentials and downstream AWS account compromise. - Exposure is broad where MCP servers are internet-reachable or accessible by untrusted users; local-only stdio deployments have lower exposure but still contain vulnerable code paths.
Affected populations
- Organizations using
aws-api-mcp-server, AWS Remote MCP Server, or forked/derivative MCP implementations. - Organizations running the community
aws-mcp-server, especially over streamable HTTP on port 8000. - Developer, DevOps, cloud engineering, and AI tooling environments where MCP servers may have access to local files, AWS credentials, or privileged cloud APIs.
Known exploitation status
- Public reporting confirms researcher reproduction of CVE-2026-4270 against a live AWS-hosted endpoint.
- CVE-2026-5058 was published as a 0-day advisory after vendor rejection.
- The provided references do not confirm active malicious exploitation in the wild, but the exploit prerequisites are low for exposed
aws-mcp-serverinstances.


