PyPI: future
CVE-2022-40899
Safety vulnerability ID: SFTY-20221223-55242
Safety legacy ID: pyup.io-52510
Future 0.18.2 and earlier allows remote attackers to cause a denial of service via crafted Set-Cookie header from malicious web server. https://github.com/PythonCharmers/python-future/blob/master/src/future/backports/http/cookiejar.py#L215 https://github.com/python/cpython/pull/17157
Overview
Python Charmers Future denial of service vulnerability
Advisory
Future 0.18.2 and earlier allows remote attackers to cause a denial of service via crafted Set-Cookie header from malicious web server. https://github.com/PythonCharmers/python-future/blob/master/src/future/backports/http/cookiejar.py#L215 https://github.com/python/cpython/pull/17157
How to Fix
Mitigation and Workarounds
---
Vulnerable Functions
Functions linked to known vulnerabilities.
References
- https://getsafety.com/vulnerabilities/SFTY-20221223-55242/CVE-2022-40899
- https://nvd.nist.gov/vuln/detail/CVE-2022-40899
- https://github.com/python/cpython/pull/17157
- https://github.com/PythonCharmers/python-future/blob/master/src/future/backports/http/cookiejar.py#L215
- https://github.com/PythonCharmers/python-future/commit/c91d70b34ef0402aef3e9d04364ba98509dca76f
- https://github.com/PythonCharmers/python-future/pull/610
- https://github.com/pypa/advisory-database/tree/main/vulns/future/PYSEC-2022-42991.yaml
- https://pypi.org/project/future
- https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages
- https://github.com/advisories/GHSA-v3c5-jqr6-7qm8
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
