GitHub Advisoryadvisory · crates.io

GHSA-v4wr-j3w6-mxqc tough terminating targets role delegations are not respected

MEDIUM Published 2025-03-28 Modified 2025-10-14 Official page ↗
Aliases
CVE-2025-2886
Ecosystem
crates.io
Packages
tough
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:N/I:H/A:N
Weaknesses
CWE-670
Reviewed
2025-03-28

Affected packages

• crates.io tough: < 0.20.0 → fixed in 0.20.0

Description

Summary Delegations are a mechanism defined by the TUF specification that allow multiple different identities to provide and sign content within a single repository. Terminating delegations and delegation priority give a TUF repository unambiguous control over how overlapping delegations are resolved. tough erroneously will not terminate a search as required, and will accept information from a lower-priority delegation that should have been ignored. Impact When interacting with TUF repositories that use delegations, the tough client could fetch targets owned by the incorrect role. An actor which had delegated ownership of a subset of a TUF repository could provide arbitrary contents to tough clients for targets owned by the delegating identity. Impacted versions: < v0.20.0 Patches A fix for this issue is available in tough version 0.20.0 and later. Customers are advised to upgrade to version 0.20.0 or later and ensure any forked or derivative code is patched to incorporate the new fixes. Workarounds There is no recommended work around. Customers are advised to upgrade to version 0.20.0 or the latest version. References If you have any questions or comments about this advisory we ask that you contact AWS/Amazon Security via our vulnerability reporting page [1] or directly via email to [email protected]. Please do not create a public GitHub issue. [1] Vulnerability reporting page: https://aws.amazon.com/security/vulnerability-reporting Acknowledgement These issues were identified by the TUF-Conformance project. We would like to thank Google for collaborating on this issue through the coordinated vulnerability disclosure process.

Related

Alias · CVE (1)

  • CVE-2025-2886 Missing validation of terminating delegation causes the client to continue searching the defined delegation list, even after searching a… vulnerability

Weakness · CWE (1)

  • CWE-670 Always-Incorrect Control Flow Implementation weakness

References