CVE-2025-9039 Information Disclosure in Amazon ECS Container Agent

Medium 5.3 Published Updated

An attacker in the same security group can access the ECS agent introspection server to disclose sensitive information.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-9039?

CVE-2025-9039 is a medium-severity vulnerability in Amazon ECS, published on 14 Aug 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

We identified an issue in the Amazon ECS agent where, under certain conditions, an introspection server could 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'.

This 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.

If customers cannot update to the latest AMI, they can modify the Amazon EC2 security groups to restrict incoming access to the introspection server port (51678).

Weakness: CWE-277

Which versions are affected by CVE-2025-9039?

3 open source packages ship an affected version, including github.com/aws/amazon-ecs-agent.

PackageAffectedFixed in
github.com/aws/amazon-ecs-agent GoFrom 0.0.31.97.1
github.com/aws/amazon-ecs-agent GoFrom 0.0.31.97.1
github.com/aws/amazon-ecs-agent GoFrom 0.0.31.97.1

How do I fix CVE-2025-9039?

Upgrade github.com/aws/amazon-ecs-agent to 1.97.1 or later.

Is CVE-2025-9039 being exploited?

There is no known exploitation of CVE-2025-9039 in the wild and no public exploit code.

Sources

Also known as GHSA-wm7x-ww72-r77q, GO-2025-3891.

Is CVE-2025-9039 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free