#VU100516 Input validation error in Python - CVE-2024-11168


Vulnerability identifier: #VU100516

Vulnerability risk: Medium

CVSSv4.0: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2024-11168

CWE-ID: CWE-20

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Python
Universal components / Libraries / Scripting languages

Vendor: Python.org

Description

The vulnerability allows a remote attacker to bypass security restrictions.

The vulnerability exists due to insufficient validation of bracketed hosts (e.g. []) within the urllib.parse.urlsplit() and urlparse() functions allowing hosts that weren't IPv6 or IPvFuture. A remote attacker can pass specially crafted IP address to the application to bypass implemented IP-based security checks or perform SSRF attacks.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Python: 3.0 - 3.0.1, 3.1.0 - 3.11.4, 3.2 - 3.2.2150, 3.3 - 3.3.7, 3.4 - 3.4.10, 3.5 - 3.5.10, 3.6 - 3.6.15, 3.7 - 3.7.17, 3.8 - 3.8.20, 3.9.0b4 - 3.9.20


External links
http://github.com/python/cpython/commit/29f348e232e82938ba2165843c448c2b291504c5
http://github.com/python/cpython/pull/103849
http://github.com/python/cpython/issues/103848
http://mail.python.org/archives/list/security-announce@python.org/thread/XPWB6XVZ5G5KGEI63M4AWLIEUF5BPH4T/
http://github.com/python/cpython/commit/b2171a2fd41416cf68afd67460578631d755a550


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