CVE-2025-9039: Github.com/aws/amazon ecs agent Information Disclosure Vulnerability
MODERATECVE-2025-9039 is a MODERATE (CVSS 4.3) information disclosure vulnerability (CWE-277: Insecure Inherited Permissions) affecting Github.com/aws/amazon ecs agent libraries in the Go ecosystem. The issue involves information disclosure in amazon ecs container agent. Remediation is available by upgrading affected packages to version 1.97.1.
CVE-2025-9039 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N).
How to Fix CVE-2025-9039
To remediate this vulnerability, upgrade all affected Github.com/aws/amazon ecs agent dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/aws/amazon-ecs-agent to 1.97.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/aws/amazon-ecs-agent
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-9039, inspect your project dependencies for Github.com/aws/amazon ecs agent:
inspect dependencies for github.com/aws/amazon-ecs-agent
Analyze the terminal output to locate any version of Github.com/aws/amazon ecs agent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.97.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-277: Insecure Inherited Permissions, where a product defines a set of insecure permissions that are inherited by objects that are created by the program. In Github.com/aws/amazon ecs agent, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-9039 Affected Github.com/aws/amazon ecs agent Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/aws/amazon-ecs-agent
|
Go |
≥ 0.0.3
< 1.97.1
|
1.97.1
|
References
Frequently Asked Questions
What is CVE-2025-9039?
Which Github.com/aws/amazon ecs agent versions are affected?
What version fixes CVE-2025-9039?
Is github.com/aws/amazon-ecs-agent affected?
What is the CVSS score of CVE-2025-9039?
What CWE is associated with CVE-2025-9039?
How can I check Go dependencies for CVE-2025-9039?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-wm7x-ww72-r77q",
"modified" : "2025-08-14T19:37:34Z",
"published" : "2025-08-14T18:30:08Z",
"aliases" : [ "CVE-2025-9039" ],
"summary" : "Information Disclosure in Amazon ECS Container Agent",
"details" : "**Summary**\n[Amazon Elastic Container Service (Amazon ECS)](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/Welcome.html) is a fully managed container orchestration service that enables customers to deploy, manage, and scale containerized applications. Amazon ECS container agent provides an [introspection API](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/introspection-diag.html) that provides information about the overall state of the Amazon ECS agent and the container instances. \n\nWe identified CVE-2025-9039, an issue in the Amazon ECS agent.\n\n**Impact**\nUnder certain conditions, this issue could allow an introspection server to be accessed off-host by another instance if the instances are in the same security group or if their security groups allow incoming connections that include the port where the server is hosted. This issue does not affect instances where the option to allow off-host access to the introspection server is set to 'false'. \n\nImpacted versions: version 0.0.3 through 1.97.0\n\n**Patches**\nThis issue has been addressed in ECS agent version 1.97.1. We recommend upgrading to the latest version and ensuring any forked or derivative code is patched to incorporate the new fixes. \n\n**Workarounds**\nCustomers who cannot update to the latest AMI can modify the Amazon EC2 security groups to restrict incoming access to the introspection server port (51678). \n\n**References**\nIf you have any questions or comments about this advisory, we ask that you contact AWS Security via our [vulnerability reporting page](https://aws.amazon.com/security/vulnerability-reporting) or directly via email to [aws-security@amazon.com](mailto:aws-security@amazon.com). Please do not create a public GitHub issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/aws/amazon-ecs-agent"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.0.3"
}, {
"fixed" : "1.97.1"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 1.97.0"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/aws/amazon-ecs-agent/security/advisories/GHSA-wm7x-ww72-r77q"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-9039"
}, {
"type" : "WEB",
"url" : "https://aws.amazon.com/security/security-bulletins/AWS-2025-018"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aws/amazon-ecs-agent"
}, {
"type" : "WEB",
"url" : "https://github.com/aws/amazon-ecs-agent/releases/tag/v1.97.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-200", "CWE-277" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-08-14T18:30:08Z",
"nvd_published_at" : "2025-08-14T17:15:42Z"
}
}