{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-41149","id":"CVE-2021-41149","title":"Improper sanitization of target names in tough","description":"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","descriptionLong":"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.","published":"2021-10-19T18:00:12.000Z","updated":"2026-11-07T02:45:04.574073429Z","reserved":"2021-09-15T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N","rating":"high","source":"GitHub"},{"version":"2.0","score":8.5,"vector":"AV:N/AC:L/Au:S/C:N/I:C/A:C","rating":"high","source":"NVD"}],"rating":"high","products":["awslabs tough"],"affectedProducts":[{"vendor":"awslabs","product":"tough","defaultStatus":null,"versions":[{"status":"affected","version":"< 0.12.0"}],"platforms":[]}],"packages":[{"ecosystem":"crates.io","name":"tough","purl":"pkg:cargo/tough","ranges":["<0.12.0"],"fixed":["0.12.0"],"advisory":"GHSA-x3r5-q6mj-m485"}],"cwes":["CWE-22"],"aliases":["GHSA-x3r5-q6mj-m485"],"references":[{"url":"https://github.com/awslabs/tough/security/advisories/GHSA-x3r5-q6mj-m485","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/awslabs/tough/commit/1809b9bd1106d78a51fbea3071aa97a3530bac9a","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41149","tags":["advisory"]},{"url":"https://github.com/awslabs/tough","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01113,"epssPercentile":0.66688,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-41149","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-41149","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-41149","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-x3r5-q6mj-m485","ok":true,"note":"GHSA-x3r5-q6mj-m485"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-41149","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}