Comparison Using Wrong Factors Affecting tough package, versions <0.20.0


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.05% (16th 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 IDSNYK-RUST-TOUGH-9667374
  • published6 Apr 2025
  • disclosed28 Mar 2025
  • creditJussi Kukkonen, AdamKorcz

Introduced: 28 Mar 2025

NewCVE-2025-2888  (opens in a new tab)
CWE-1025  (opens in a new tab)

How to fix?

Upgrade tough to version 0.20.0 or higher.

Overview

tough is an Update Framework (TUF) repository client

Affected versions of this package are vulnerable to Comparison Using Wrong Factors in lib.rs, where the timestamp role's caching mechanism may persist outdated metadata after a failed snapshot rollback. An attacker can exploit this to cause the system to accept an outdated snapshot as valid, leading to denial of service.

CVSS Base Scores

version 4.0
version 3.1