# CVE-2021-41150: Improper sanitization of delegated role 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.28%, higher than 70% of CVEs (2026-12-01)
- Published: 2021-10-19T19:55:09.000Z
- Modified: 2026-06-17T04:07:58.500Z
- Also known as: GHSA-r56q-vv3c-6g9c
- 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 delegated role names when caching a repository, or when loading a repository from the filesystem. When the repository is cached or loaded, files ending with the .json extension could be overwritten with role metadata 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 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/awslabs/tough/commit/1809b9bd1106d78a51fbea3071aa97a3530bac9a> (patch, third-party-advisory, web)
- <https://github.com/awslabs/tough/security/advisories/GHSA-r56q-vv3c-6g9c> (third-party-advisory, web)
- <https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-wjw6-2cqr-j4qr> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41150> (advisory)
- <https://github.com/awslabs/tough> (package)

## Sources

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

---

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