#VU71137 Incorrect Regular Expression in Python Charmers Future - CVE-2022-40899


Vulnerability identifier: #VU71137

Vulnerability risk: Medium

CVSSv4.0: 6.6 [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/U:Green]

CVE-ID: CVE-2022-40899

CWE-ID: CWE-185

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Python Charmers Future
Other software / Other software solutions

Vendor: python-future.org

Description

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to improper input validation when processing the Set-Cookie header. A remote attacker can send a specially crafted HTTP request to the application and perform a regular expression denial of service (ReDoS) attack.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Python Charmers Future: 0.2.0 - 0.18.2


External links
https://pypi.org/project/future/
https://github.com/python/cpython/pull/17157
https://github.com/PythonCharmers/python-future/blob/master/src/future/backports/http/cookiejar.py#L215
https://pyup.io/posts/pyup-discovers-redos-vulnerabilities-in-top-python-packages/


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability