CVE-2020-6174: Tuf Incorrect Threshold Signature Computation Vulnerability
CRITICALCVE-2020-6174 is a CRITICAL (CVSS 9.8) incorrect threshold signature computation vulnerability (CWE-347: Improper Verification of Cryptographic Signature) affecting Tuf libraries in the PyPI ecosystem. The issue involves incorrect threshold signature computation in tuf. Remediation is available by upgrading affected packages to version 0.12.2.
CVE-2020-6174 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2020-6174
To remediate this vulnerability, upgrade all affected Tuf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install tuf>=0.12.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show tuf
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2020-6174, inspect your installed packages using pip:
pip show tuf
Analyze the terminal output to locate any version of Tuf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.12.2), your application is affected.
Note: The pip show tuf command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-347: Improper Verification of Cryptographic Signature, where the product does not verify, or incorrectly verifies, the cryptographic signature for data. In Tuf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2020-6174 Affected Tuf Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
tuf
|
PyPI |
< 0.12.2
|
0.12.2
|
References
Frequently Asked Questions
What is CVE-2020-6174?
Which Tuf versions are affected?
What version fixes CVE-2020-6174?
Is tuf affected?
What is the CVSS score of CVE-2020-6174?
What CWE is associated with CVE-2020-6174?
How can I check PyPI dependencies for CVE-2020-6174?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-pwqf-9h7j-7mv8",
"modified" : "2024-11-18T22:40:36Z",
"published" : "2020-08-21T16:25:26Z",
"aliases" : [ "CVE-2020-6174" ],
"summary" : "Incorrect threshold signature computation in TUF",
"details" : "### Impact\nMetadadata signature verification, as used in `tuf.client.updater`, counted each of multiple signatures with identical authorized keyids separately towards the threshold. Therefore, an attacker with access to a valid signing key could create multiple valid signatures in order to meet the minimum threshold of keys before the metadata was considered valid.\n\nThe tuf maintainers would like to thank Erik MacLean of Analog Devices, Inc. for reporting this issue.\n\n### Patches\nA [fix](https://github.com/theupdateframework/tuf/pull/974) is available in version [0.12.2](https://github.com/theupdateframework/tuf/releases/tag/v0.12.2) or newer.\n\n### Workarounds\nNo workarounds are known for this issue.\n\n### References\n* [CVE-2020-6174](https://nvd.nist.gov/vuln/detail/CVE-2020-6174)\n* Pull request resolving the issue [PR 974](https://github.com/theupdateframework/tuf/pull/974)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "tuf"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.12.2"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/theupdateframework/tuf/security/advisories/GHSA-pwqf-9h7j-7mv8"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-6174"
}, {
"type" : "WEB",
"url" : "https://github.com/theupdateframework/tuf/pull/974"
}, {
"type" : "WEB",
"url" : "https://github.com/theupdateframework/python-tuf/commit/2977188139d065ff3356c3cb4aec60c582b57e0e"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/tuf/PYSEC-2020-147.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/theupdateframework/tuf"
}, {
"type" : "WEB",
"url" : "https://github.com/theupdateframework/tuf/releases/tag/v0.12.2"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-347" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-21T16:25:02Z",
"nvd_published_at" : null
}
}