{"answers":{"affected":"2 open source packages ship an affected version, including tough. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-2885 in the wild and no public exploit code.","fix":"Upgrade tough to 0.20.0 or later.","what":"CVE-2025-2885 is a medium-severity vulnerability in AWS tough, published on 27 Mar 2025."},"fix_prompt":"Check this codebase for CVE-2025-2885 and fix it if it is affected.\n\nWhat it is: CVE-2025-2885 is a medium-severity vulnerability in AWS tough, published on 27 Mar 2025. \nExploitation: There is no known exploitation of CVE-2025-2885 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- tough (crates.io): affected all versions; fixed in 0.20.0\n- tough (crates.io): affected all versions; fixed in 0.20.0\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-2885/ (Markdown: https://insights.sbomify.com/CVE-2025-2885/index.md)","id":"CVE-2025-2885","markdown":"https://insights.sbomify.com/CVE-2025-2885/index.md","name":"CVE-2025-2885","record":{"aliases":["GHSA-5vmp-m5v2-hx47"],"analysis":null,"analysis_generated_by":null,"assigner":"AMZN","cpe":[{"product":"tough","vendor":"amazon"}],"cvss":{"score":5.7,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:H/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-1288","name":"Improper Validation of Consistency within Input"}],"description":"Missing validation of the root metatdata version number could allow an actor to supply an arbitrary version number to the client instead of the intended version in the root metadata file, altering the version fetched by the client. Users should upgrade to tough version 0.20.0 or later and ensure any forked or derivative code is patched to incorporate the new fixes.","ecosystems":["crates.io"],"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":"Root metadata version not validated in tough","id":"CVE-2025-2885","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":null,"year":"2025"},"n_packages":2,"n_references":3,"next":{"headline":"Terminating targets role delegations are not respected in tough","id":"CVE-2025-2886"},"packages":[{"ecosystem":"crates.io","fixed":["0.20.0"],"introduced":["0"],"last_affected":[],"package":"tough","purl":null,"source":"GHSA-5vmp-m5v2-hx47"},{"ecosystem":"crates.io","fixed":["0.20.0"],"introduced":["0"],"last_affected":[],"package":"tough","purl":"pkg:cargo/tough","source":"GHSA-5vmp-m5v2-hx47"}],"prev":{"headline":"Out-of-Bounds read vulnerability in TCG TPM2.0 reference implementation","id":"CVE-2025-2884"},"products":["tough"],"published":"2025-03-27","related":[{"cvss_score":8.6,"headline":"Improper verification of signature threshold in tough","id":"CVE-2020-15093","kev_date_added":null,"published":"2020-07-09"},{"cvss_score":8.2,"headline":"Improper sanitization of target names in tough","id":"CVE-2021-41149","kev_date_added":null,"published":"2021-10-19"},{"cvss_score":8.2,"headline":"Improper sanitization of delegated role names in tough","id":"CVE-2021-41150","kev_date_added":null,"published":"2021-10-19"},{"cvss_score":7.1,"headline":"Missing Delegated Metadata Validation in awslabs/tough","id":"CVE-2026-6967","kev_date_added":null,"published":"2026-04-24"},{"cvss_score":7.1,"headline":"Multiple Path Traversal Variants in awslabs/tough","id":"CVE-2026-6968","kev_date_added":null,"published":"2026-04-24"},{"cvss_score":7,"headline":"Signature Threshold Bypass in awslabs/tough Delegated Roles","id":"CVE-2026-6966","kev_date_added":null,"published":"2026-04-24"}],"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":"US public information, NVD API terms","name":"NVD"},{"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-10-14","vendors":["AWS"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2025-2885/"}