CVE-2021-41150
MEDIUM 6.5CVSS 3.1Improper sanitization of delegated role 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 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.
- Published
- 19 Oct 2021
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22
- Also known as
- GHSA-r56q-vv3c-6g9c
- Sources
- NVDJSONOSV GHSA-r56q-vv3c-6g9cJSON
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 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
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-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
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)