{"answers":{"affected":"3 open source packages ship an affected version, including github.com/aws/amazon-ecs-agent.","exploited":"There is no known exploitation of CVE-2025-9039 in the wild and no public exploit code.","fix":"Upgrade github.com/aws/amazon-ecs-agent to 1.97.1 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2025-9039 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2025-9039 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/aws/amazon-ecs-agent (Go): affected from 0.0.3; fixed in 1.97.1\n- github.com/aws/amazon-ecs-agent (Go): affected from 0.0.3; fixed in 1.97.1\n- github.com/aws/amazon-ecs-agent (Go): affected from 0.0.3; fixed in 1.97.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-9039/ (Markdown: https://insights.sbomify.com/CVE-2025-9039/index.md)","id":"CVE-2025-9039","markdown":"https://insights.sbomify.com/CVE-2025-9039/index.md","name":"CVE-2025-9039","record":{"aliases":["GHSA-wm7x-ww72-r77q","GO-2025-3891"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Amazon ECS Agent","requires_auth":"low_privilege","summary":"An attacker in the same security group can access the ECS agent introspection server to disclose sensitive information.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"AMZN","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-277","name":"Insecure Inherited Permissions"}],"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'.\n\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\nIf 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).","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Information Disclosure in Amazon ECS Container Agent","id":"CVE-2025-9039","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2025"},"n_packages":3,"n_references":3,"next":{"headline":"Rockwell Automation FLEX 5000 I/O - Module Fault","id":"CVE-2025-9041"},"packages":[{"ecosystem":"Go","fixed":["1.97.1"],"introduced":["0.0.3"],"last_affected":[],"package":"github.com/aws/amazon-ecs-agent","purl":null,"source":"GHSA-wm7x-ww72-r77q"},{"ecosystem":"Go","fixed":["1.97.1"],"introduced":["0.0.3"],"last_affected":[],"package":"github.com/aws/amazon-ecs-agent","purl":"pkg:golang/github.com/aws/amazon-ecs-agent","source":"GHSA-wm7x-ww72-r77q"},{"ecosystem":"Go","fixed":["1.97.1"],"introduced":["0.0.3"],"last_affected":[],"package":"github.com/aws/amazon-ecs-agent","purl":"pkg:golang/github.com/aws/amazon-ecs-agent","source":"GO-2025-3891"}],"prev":{"headline":"S1 Agile Privilege Escalation","id":"CVE-2025-9038"},"products":["ECS"],"published":"2025-08-14","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-08-14","vendors":["Amazon"]},"summary":"An attacker in the same security group can access the ECS agent introspection server to disclose sensitive information.","url":"https://insights.sbomify.com/CVE-2025-9039/"}