Skip to main content
Mallory
CriticalVulnerability

CVE-2026-5058: Command Injection RCE in aws-mcp-server

Published Apr 11, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3
EPSS2.4%85th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
IdentifiersCVE-2026-5058CWE-78 · Improper Neutralization of Special…

CVE-2026-5058 is an unauthenticated command injection vulnerability in aws-mcp-server. The flaw exists in the handling of the allowed commands list, where a user-supplied string is not properly validated before being used in a system call. Because attacker-controlled input can reach OS command execution logic without sufficient sanitization, a remote attacker can trigger arbitrary command execution on affected installations. Successful exploitation results in code execution in the security context of the MCP server process. The issue is tracked by the Zero Day Initiative as ZDI-26-246 and was previously tracked as ZDI-CAN-27968.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows a remote, unauthenticated attacker to execute arbitrary operating system commands in the context of the aws-mcp-server process. Given the reported CVSS vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, the expected impact includes full compromise of confidentiality, integrity, and availability of the affected host within the privileges of the server process. This can enable host takeover, data theft, tampering, service disruption, and use of the compromised server as a pivot point for further intrusion.

Mitigation

If you can’t patch tonight, do this now.

Until a patch is available, do not expose aws-mcp-server to untrusted networks. Restrict access to trusted clients only using network segmentation, firewall rules, reverse-proxy ACLs, or bind the service only to localhost where feasible. Disable or avoid deployments that permit remote network access if operationally possible. Run the service with the minimum necessary OS and cloud privileges, isolate it in a hardened container or sandbox, and monitor for anomalous command execution from the server process. Because exploitation is unauthenticated, reducing reachability is the most important immediate mitigation.

Remediation

Patch, then assume compromise.

Apply a vendor fix when one becomes available. The underlying issue must be corrected by enforcing strict validation and sanitization of user-controlled input associated with the allowed commands list before any system call is made, and by avoiding shell-mediated command execution where possible. If maintaining the software internally, refactor command execution to use parameterized process invocation with a fixed command/argument allowlist rather than passing user-influenced strings to the shell. The provided content does not identify a patched version.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

Frequently asked questions

Is CVE-2026-5058 exploited in the wild?
As of Sep 25, 2026, Mallory has no reports of CVE-2026-5058 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-5058?
As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-5058.
Is there a patch for CVE-2026-5058?
Apply a vendor fix when one becomes available. The underlying issue must be corrected by enforcing strict validation and sanitization of user-controlled input associated with the allowed commands list before any system call is made, and by avoiding shell-mediated command execution where possible.
How severe is CVE-2026-5058?
CVE-2026-5058 has a CVSS v3 score of 9.8 (Critical) and an EPSS score of 2.4% (85th percentile) as of Sep 25, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity5Community discussion across Reddit, Mastodon, and other social sources.