Skip to main content

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

HIGH

Improper sanitization of target names

Published October 19, 2021Updated July 8, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (1.11%). Schedule for your next planned update.

Does your project use an affected tough version?

Paste your Cargo.lock to check it for CVE-2021-41149 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Cargo.lock

Summary

Impact

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.

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.

Advisory Timeline

  • First published October 19, 2021 (1864 days ago).
  • Last revised July 8, 2026 — 1722 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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: crates.io (1).

PackageFixed In
tough crates.io · Affected: 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-41149?
Improper sanitization of target 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-41149?
CVE-2021-41149 affects tough. It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2021-41149 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.2

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.11%
EPSS percentile: 65.6

This is an above-median EPSS score — 65.6% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-x3r5-q6mj-m485

Related CVEs

  • CVE-2020-15093
    HIGH

    Improper uniqueness verification of signature threshold

  • CVE-2026-83816
    HIGH

    CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE

  • CVE-2026-6967
    HIGH

    awslabs/tough is Missing Delegated Metadata Validation

  • CVE-2020-15093
    HIGH

    Improper verification of signature threshold in tough

  • CVE-2026-83817
    HIGH

    CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution

  • CVE-2021-41150
    HIGH

    Improper sanitization of delegated role names

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Cargo.lock