CVE-2025-2885: Root metadata version not validated in tough
Summary
When updating the root role, a TUF client must establish a trusted line of continuity to the latest set of keys. While sequentially downloading new versions of the root metadata file, tough will not check that the root object version it received was the next sequential version from the previously trusted root metadata.
Impact
The tough client will trust an outdated or rotated root role in the event that an actor with control of the storage medium of a trusted TUF repository inappropriately replaced the contents of one of the root metadata files with an adequately signed previous version. As a result, tough could trust content associated with a previous root role.
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 aws-security@amazon.com. 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.
Other sources
Missing validation of the root metatdata version number could allow an actor to supply an arbitrary version number to the client instead of the intended version in the root metadata file, altering the version fetched by the client. Users should upgrade to tough version 0.20.0 or later and ensure any forked or derivative code is patched to incorporate the new fixes.
— NVD
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-2885?
CVE-2025-2885 has been classified with a high severity due to the potential for arbitrary version number manipulation.
How do I fix CVE-2025-2885?
To fix CVE-2025-2885, users should upgrade to tough version 0.20.0 or later.
What causes CVE-2025-2885?
CVE-2025-2885 is caused by missing validation of the root metadata version number.
Who is affected by CVE-2025-2885?
CVE-2025-2885 affects users of the tough library versions prior to 0.20.0.
What kind of attack can CVE-2025-2885 enable?
CVE-2025-2885 could enable an attacker to supply an arbitrary version number, altering the version fetched by the client.