CVE-2021-41149
HIGH 8.1CVSS 3.1Improper sanitization of target names
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
- 19 Oct 2021
- Last modified
- 8 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-x3r5-q6mj-m485
- Sources
- NVDJSONOSV GHSA-x3r5-q6mj-m485JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 8.5 | AV:N/AC:L/Au:S/C:N/I:C/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | amazon | toughcpe:2.3:a:amazon:tough:*:*:*:*:*:rust:*:* |
< 0.12.0 | 0.12.0 |
| OSV | crates.io | tough | < 0.12.0 | 0.12.0 |
References
- https://github.com/awslabs/tough/commit/1809b9bd1106d78a51fbea3071aa97a3530bac9a · Patch, Third Party Advisory, WEB
- https://github.com/awslabs/tough/security/advisories/GHSA-x3r5-q6mj-m485 · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-41149 · ADVISORY
- https://github.com/awslabs/tough · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 19 Oct 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Oct 2021)