Loading...
Skip to main content

CVE-2021-41150 — Vulnerability in tough — CVE Details

HIGH

Improper sanitization of delegated role names

Published October 19, 2021Updated February 4, 2026Source: osv

Summary

### Impact 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. AWS would like to thank https://github.com/jku for reporting this issue. ### Patches A fix is available in version 0.12.0. ### Workarounds No workarounds to this issue are known. ### References https://github.com/theupdateframework/python-tuf/security/advisories/GHSA-wjw6-2cqr-j4qr

Advisory Timeline

  • First published October 19, 2021 (1819 days ago).
  • Last revised February 4, 2026 — 1568 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Cargo
Update tough to 0.12.0 or later
cargo update -p tough --precise 0.12.0

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageEcosystemAffectedFixed In
tough
crates.io
All versions0.12.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.2 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2021-41150?
Improper sanitization of delegated role names This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.2/10).
How do I check if my project is affected by CVE-2021-41150?
CVE-2021-41150 affects tough. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-41150 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.2

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-r56q-vv3c-6g9c

Related CVEs

  • CVE-2020-15093
    HIGH

    Improper uniqueness verification of signature threshold

  • CVE-2026-6967
    HIGH

    awslabs/tough is Missing Delegated Metadata Validation

  • CVE-2026-93657
    HIGH

    hickory-resolver: Resolver::lookup() and Resolver::lookup_ip() APIs obscure DNSSEC validation failures

  • CVE-2020-15093
    HIGH

    Improper verification of signature threshold in tough

  • CVE-2026-18140
    HIGH

    aws-smithy-json: Uncontrolled recursion in the aws-smithy-json unknown-key skip path allows unauthenticated remote denial of service in smithy-rs generated servers

  • CVE-2021-41149
    HIGH

    Improper sanitization of target names

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies