Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain AWS credentials with task definition permissions
-
DeliveryCraft malicious ECS task definition with command injection in FSx username field
-
ExploitRegister task definition via ECS API
-
InstallECS scheduler assigns task to Windows container instance
-
C2ECS Agent processes FSx mount with unsanitized username
-
ExecuteExecute injected commands as SYSTEM
-
ImpactAchieve 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 ' |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
3DescriptionCVE.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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
EUVD-2026-26412
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB