Improper Input Validation Affecting tough package, versions <0.12.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.08% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Input Validation vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RUST-TOUGH-1759833
  • published20 Oct 2021
  • disclosed19 Oct 2021
  • creditUnknown

Introduced: 19 Oct 2021

CVE-2021-41149  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade tough to version 0.12.0 or higher.

Overview

tough is an Update Framework (TUF) repository client

Affected versions of this package are vulnerable to Improper Input Validation due to improper sanitizing of 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.

References

CVSS Scores

version 3.1