# CVE-2021-41149: Improper sanitization of target names in tough

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.11%, higher than 66% of CVEs (2026-12-01)
- Published: 2021-10-19T18:00:12.000Z
- Modified: 2026-07-08T06:27:45.360Z
- Also known as: GHSA-x3r5-q6mj-m485
- Weaknesses: CWE-22
- Assigned by: GitHub_M

## 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 in version 0.12.0. No workarounds to this issue are known.

(As written by CVE List.)

## Affected

- awslabs tough: < 0.12.0
- tough (crates.io): before 0.12.0
- amazon tough: before 0.12.0

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- NVD: CVSS:2.0 8.5 High `AV:N/AC:L/Au:S/C:N/I:C/A:C`

## References

- <https://github.com/awslabs/tough/security/advisories/GHSA-x3r5-q6mj-m485> (third-party-advisory, web)
- <https://github.com/awslabs/tough/commit/1809b9bd1106d78a51fbea3071aa97a3530bac9a> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41149> (advisory)
- <https://github.com/awslabs/tough> (package)

## Sources

- CVE List: [CVE-2021-41149](https://www.cve.org/CVERecord?id=CVE-2021-41149), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-x3r5-q6mj-m485](https://github.com/advisories/GHSA-x3r5-q6mj-m485), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-41149](https://nvd.nist.gov/vuln/detail/CVE-2021-41149), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-41149 · Whole record: https://cve.day/CVE-2021-41149.json · Rebuilt by cve.day 2026-11-25T22:58:04.568Z
