# CVE-2021-41150: Improper sanitization of delegated role names in tough

- Priority: **Routine**
- Reason: Not severe (CVSS 8.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-10-19 · Modified: 2024-08-04
- Aliases: GHSA-r56q-vv3c-6g9c
- Record: https://cvemate.com/vulnerability/CVE-2021-41150 · JSON: https://cvemate.com/vulnerability/CVE-2021-41150/json

## 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 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.
```

## Signals

- CVSS: 8.2 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N
- EPSS: 1.281%, percentile 71.046%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- amazon tough: \< 0.12.0
- awslabs tough: \< 0.12.0
- Crates.Io tough (Crates.Io): \< 0.12.0

## References

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

---

Data as of 2026-12-05T09:54:44.811Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
