PyPI: priority
CVE-2016-6580
Safety vulnerability ID: SFTY-20170110-74815
Safety legacy ID: pyup.io-42335
Priority 1.2.0 includes a fix for CVE-2016-6580: 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.
Overview
priority vulnerable to denial of service
Advisory
Priority 1.2.0 includes a fix for CVE-2016-6580: 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.
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20170110-74815/CVE-2016-6580
- https://nvd.nist.gov/vuln/detail/CVE-2016-6580
- https://python-hyper.org/priority/en/latest/security/CVE-2016-6580.html
- https://github.com/python-hyper/priority/commit/7d01a7dc4db83bce50f20d47caf4f37b403a3ecd
- https://github.com/pypa/advisory-database/tree/main/vulns/priority/PYSEC-2017-93.yaml
- https://web.archive.org/web/20160806004329/http://www.securityfocus.com/bid/92311
- https://github.com/advisories/GHSA-h3q4-6j7f-r24c
Verified by Safety
Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.
Learn more
