{"id":"CVE-2021-41149","published":"2021-10-19T18:00:12Z","modified":"2024-08-04T02:59:31Z","title":"Improper sanitization of target names in tough","vendor":"awslabs","product":"tough","tier":"tail","description":{"text":"Tough provides a set of Rust libraries and tools for using and generating the update framework (TUF) repositories. The 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. A fix is available in version 0.12.0. No workarounds to this issue are known.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01113,"percentile":0.66793,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/awslabs/tough/security/advisories/GHSA-x3r5-q6mj-m485","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/awslabs/tough/commit/1809b9bd1106d78a51fbea3071aa97a3530bac9a","tags":["x_refsource_MISC"]}],"priority":{"score":19.1,"factors":[{"name":"EPSS percentile","points":13.36},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"awslabs","affectedVersions":[{"vendor":"awslabs","product":"tough","versions":["< 0.12.0"]}],"affected":[{"ecosystem":"crates.io","package":"tough","vulnerableRanges":["<0.12.0"],"patched":["0.12.0"],"from":["GHSA-x3r5-q6mj-m485"],"provenance":"source"}],"summary":{"text":"The flaw is improper sanitization of target names in the tough Rust library from awslabs, which provides TUF repository handling. Prior to version 0.12.0, target names are not properly sanitized when a repository is cached or when specific targets are saved to an output directory. An attacker who can get a crafted target name processed through one of those operations can cause files to be overwritten with arbitrary content at arbitrary locations on the system, with the attack vector being network-reachable, low privileges required, high attack complexity, and no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:08Z"},"euvd":{"id":"EUVD-2021-2271","exploited":false,"provenance":"source"}}