#VU71137 Incorrect Regular Expression in Python Charmers Future


Published: 2023-01-12

Vulnerability identifier: #VU71137

Vulnerability risk: Medium

CVSSv3.1: 6.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C]

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
http://pypi.org/project/future/
http://github.com/python/cpython/pull/17157
http://github.com/PythonCharmers/python-future/blob/master/src/future/backports/http/cookiejar.py#L215
http://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