{"id":"GHSA-x3r5-q6mj-m485","summary":"Improper sanitization of target names","details":"### Impact\nThe tough library, prior to 0.12.0, does not properly sanitize target names when caching a repository, or when saving specific targets to an output directory. When targets are cached or saved, files could be overwritten with arbitrary content anywhere on the system.\n\nAWS would like to thank https://github.com/jku for reporting this issue.\n\n### Patches\nA fix is available in version 0.12.0.\n\n### Workarounds\nNo workarounds to this issue are known.\n","aliases":["CVE-2021-41149"],"modified":"2026-05-07T05:01:31.958585213Z","published":"2021-10-19T20:16:15Z","database_specific":{"nvd_published_at":"2021-10-19T18:15:00Z","cwe_ids":["CWE-22"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2021-10-19T18:04:34Z"},"references":[{"type":"WEB","url":"https://github.com/awslabs/tough/security/advisories/GHSA-x3r5-q6mj-m485"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41149"},{"type":"WEB","url":"https://github.com/awslabs/tough/commit/1809b9bd1106d78a51fbea3071aa97a3530bac9a"},{"type":"PACKAGE","url":"https://github.com/awslabs/tough"}],"affected":[{"package":{"name":"tough","ecosystem":"crates.io","purl":"pkg:cargo/tough"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.12.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/10/GHSA-x3r5-q6mj-m485/GHSA-x3r5-q6mj-m485.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N"}]}