Skip to main content
Mallory
← Back to News
ai-platform-securitycloud-service-vulnerabilityinternet-facing-service-vulnerabilitywidely-deployed-product-advisory

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

AWS MCP Server Flaws Expose File Read and Remote Code Execution Risks

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-server with 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-server instances.
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

9 events · Dec 14, 2025 – Apr 11, 2026
  1. Apr 11, 20268mo ago

    CVE record published for aws-mcp-server command injection

    A CVE entry for CVE-2026-5058 was published, describing the aws-mcp-server command injection vulnerability as leading to unauthenticated remote code execution. The record linked the issue to ZDI-CAN-27968 and ZDI-26-246.

    CVE-2026-5058 - aws-mcp-server Command Injection Remote Code Execution Vulnerability
  2. Apr 10, 20268mo ago

    ZDI publishes aws-mcp-server flaw CVE-2026-5059 as zero day

    ZeroPath reports that ZDI disclosed a separate unauthenticated command injection flaw in the community-maintained aws-mcp-server, tracked as CVE-2026-5059 and advisory ZDI-26-245, after reporting it in September 2025 and vendor rejection in December 2025. The issue affects version 1.3.0, can enable full remote code execution, and had no patch available at the time.

    Brief Summary: CVE-2026-5059 - Unauthenticated Command Injection in aws-mcp-server Enables Full Remote Code Execution - ZeroPath Blog | ZeroPath
  3. Mar 30, 20268mo ago

    ZDI publishes aws-mcp-server flaw as 0-day after vendor rejection

    After multiple follow-ups and vendor rejection, Zero Day Initiative published ZDI-26-246 for the aws-mcp-server command injection flaw as a 0-day advisory. The vulnerability, later tracked as CVE-2026-5058, allows unauthenticated remote code execution in the context of the MCP server.

    ZDI-26-246 | Zero Day Initiative
  4. Mar 25, 20268mo ago

    AWS fixes CVE-2026-4270 in aws-api-mcp-server 1.3.9

    AWS fixed the file inclusion issue tracked as CVE-2026-4270 in aws-api-mcp-server version 1.3.9. Varonis noted the flaw could expose sensitive files, credentials, secrets, and execution-environment details, and recommended immediate upgrades.

    Varonis Discovers Local File Inclusion in AWS Remote MCP Server via CLI Shorthand Syntax
  5. Mar 25, 20268mo ago

    Varonis discloses LFI in AWS Remote MCP Server

    Varonis Threat Labs disclosed a local file inclusion vulnerability in the AWS Remote MCP Server caused by AWS CLI shorthand syntax and the `@=` operator passing through the `aws___call_aws` tool. The issue allowed authenticated users to read arbitrary files from the server and was assigned CVE-2026-4270.

    Varonis Discovers Local File Inclusion in AWS Remote MCP Server via CLI Shorthand Syntax
  6. Mar 16, 20269mo ago

    Proofpoint discloses CursorJack deeplink exploitation technique

    Proofpoint Threat Research described 'CursorJack,' a proof-of-concept technique abusing Cursor IDE's cursor:// MCP deeplink installation flow to socially engineer users into approving malicious MCP server installs. In controlled tests, the chain could lead to arbitrary command execution with the user's privileges or installation of a malicious remote MCP server after user interaction.

    CursorJack: weaponizing Deeplinks to exploit Cursor IDE | Proofpoint US
  7. Mar 16, 20269mo ago

    AWS publishes advisory for CVE-2026-4269

    AWS published a security bulletin for CVE-2026-4269 covering improper S3 ownership verification in the Bedrock AgentCore Starter Toolkit. This made the vulnerability publicly known through an AWS product advisory.

    CVE-2026-4269 - Improper S3 ownership verification in Bedrock AgentCore Starter Toolkit
  8. Mar 16, 20269mo ago

    AWS publishes advisory for CVE-2026-4270

    AWS published a security bulletin for CVE-2026-4270, identified as an AWS API MCP file access restriction bypass. The advisory marks public disclosure of the issue by AWS.

    CVE-2026-4270 - AWS API MCP File Access Restriction Bypass
  9. Dec 14, 20251y ago

    ZDI reports aws-mcp-server command injection to vendor

    Trend Micro's Zero Day Initiative reported a command injection remote code execution vulnerability in aws-mcp-server, tracked as ZDI-CAN-27968 and later CVE-2026-5058, to the vendor in September 2025. The issue involved improper validation of a user-supplied string in the allowed commands list before use in a system call.

    ZDI-26-246 | Zero Day Initiative
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.