CVE-2020-6174: Incorrect threshold signature computation in TUF
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.41998%
CWE
Published
8/21/2020
Updated
11/18/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| tuf | pip | < 0.12.2 | 0.12.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from how signature verification counted identical keyids. The critical code change was in tuf/sig.py where the return statement changed from 'len(good_sigs) >= threshold' to 'len(set(good_sigs)) >= threshold', explicitly addressing duplicate keyid counting. The verify function's pre-patch behavior directly matches the vulnerability description of improper signature threshold computation. Supporting evidence includes the CWE-347 mapping, test cases added for duplicate keyid scenarios, and the maintainers' own security advisory explicitly referencing this function's behavior.