CVE-2016-6580: Priority Denial of Service Vulnerability
MODERATECVE-2016-6580 is a MODERATE (CVSS 7.5) denial of service vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Priority libraries in the PyPI ecosystem. The issue involves priority vulnerable to denial of service. Remediation is available by upgrading affected packages to version 1.2.0.
CVE-2016-6580 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2016-6580
To remediate this vulnerability, upgrade all affected Priority 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 priority>=1.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show priority
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2016-6580, inspect your installed packages using pip:
pip show priority
Analyze the terminal output to locate any version of Priority in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.0), your application is affected.
Note: The pip show priority command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Priority, 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-2016-6580 Affected Priority Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
priority
|
PyPI |
< 1.2.0
|
1.2.0
|
References
Frequently Asked Questions
What is CVE-2016-6580?
Which Priority versions are affected?
What version fixes CVE-2016-6580?
Is priority affected?
What is the CVSS score of CVE-2016-6580?
What CWE is associated with CVE-2016-6580?
How can I check PyPI dependencies for CVE-2016-6580?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-h3q4-6j7f-r24c",
"modified" : "2024-08-30T23:37:23Z",
"published" : "2022-05-17T03:02:35Z",
"aliases" : [ "CVE-2016-6580" ],
"summary" : "priority vulnerable to denial of service",
"details" : "A HTTP/2 implementation built using any version of the Python priority library prior to version 1.2.0 could be targeted by a malicious peer by having that peer assign priority information for every possible HTTP/2 stream ID. The priority tree would happily continue to store the priority information for each stream, and would therefore allocate unbounded amounts of memory. Attempting to actually use a tree like this would also cause extremely high CPU usage to maintain the tree.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "priority"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2016-6580"
}, {
"type" : "WEB",
"url" : "https://github.com/python-hyper/priority/commit/7d01a7dc4db83bce50f20d47caf4f37b403a3ecd"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/priority/PYSEC-2017-93.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/python-hyper/priority"
}, {
"type" : "WEB",
"url" : "https://python-hyper.org/priority/en/latest/security/CVE-2016-6580.html"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20160806004329/http://www.securityfocus.com/bid/92311"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-770" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-08-30T23:37:23Z",
"nvd_published_at" : "2017-01-10T15:59:00Z"
}
}