{"id":"PSF-2024-13","details":"The urllib.parse.urlsplit() and urlparse() functions improperly validated bracketed hosts (`[]`), allowing hosts that weren't IPv6 or IPvFuture. This behavior was not conformant to RFC 3986 and potentially enabled SSRF if a URL is processed by more than one URL parser.","aliases":["BIT-libpython-2024-11168","BIT-python-2024-11168","BIT-python-min-2024-11168","CVE-2024-11168"],"modified":"2026-05-18T05:47:16.211664914Z","published":"2024-11-12T21:22:23.438Z","database_specific":{"cwe_ids":[]},"references":[{"type":"FIX","url":"https://github.com/python/cpython/commit/29f348e232e82938ba2165843c448c2b291504c5"},{"type":"WEB","url":"https://github.com/python/cpython/pull/103849"},{"type":"REPORT","url":"https://github.com/python/cpython/issues/103848"},{"type":"ADVISORY","url":"https://mail.python.org/archives/list/security-announce@python.org/thread/XPWB6XVZ5G5KGEI63M4AWLIEUF5BPH4T/"},{"type":"FIX","url":"https://github.com/python/cpython/commit/b2171a2fd41416cf68afd67460578631d755a550"},{"type":"FIX","url":"https://github.com/python/cpython/commit/634ded45545ce8cbd6fd5d49785613dd7fa9b89e"},{"type":"FIX","url":"https://github.com/python/cpython/commit/ddca2953191c67a12b1f19d6bca41016c6ae7132"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/python/cpython","events":[{"introduced":"0"},{"fixed":"29f348e232e82938ba2165843c448c2b291504c5"},{"fixed":"b2171a2fd41416cf68afd67460578631d755a550"},{"fixed":"634ded45545ce8cbd6fd5d49785613dd7fa9b89e"},{"fixed":"ddca2953191c67a12b1f19d6bca41016c6ae7132"}]}],"versions":["v3.10.15","v3.9.20","v3.10.14","v3.9.19","v3.9.18","v3.10.13","v3.10.12","v3.9.17","v3.10.11","v3.11.3","v3.12.0a7","v3.12.0a6","v3.10.10","v3.11.2","v3.12.0a5","v3.12.0a4","v3.12.0a3","v3.10.9","v3.11.1","v3.9.16","v3.12.0a2","v3.12.0a1","v3.11.0rc2","v3.10.8","v3.9.15","v3.9.14","v3.10.7","v3.11.0rc1","v3.10.6","v3.11.0b5","v3.11.0b4","v3.10.5","v3.11.0b3","v3.11.0b2","v3.9.13","v3.11.0b1","v3.11.0a7","v3.10.4","v3.9.12","v3.9.11","v3.10.3","v3.11.0a6","v3.11.0a5","v3.11.0a4","v3.10.2","v3.11.0a3","v3.10.1","v3.9.9","v3.9.8","v3.10.0rc2","v3.9.7","v3.10.0rc1","v3.10.0b4","v3.9.6","v3.10.0b3","v3.10.0b2","v3.10.0b1","v3.9.5","v3.10.0a7","v3.9.2","v3.9.2rc1","v3.10.0a1","v3.9.0b5","v3.9.0b3","v3.9.0b1","v3.9.0a2","v3.7.0a2","v3.6.0b1","v3.6.0a3","v3.5.0b1","v3.5.0a4","v3.5.0a3","v3.5.0a2","v3.5.0a1","v3.4.0b3","v3.4.0b2","v3.4.0b1","v3.4.0a4","v3.4.0a3","v3.4.0a2","v3.4.0a1","v3.3.0rc3","v3.3.0rc2","v3.3.0rc1","v3.3.0b2","v3.3.0b1","v3.3.0a4","v3.3.0a3","v3.3.0a2","v3.2rc3","v3.2rc2","v3.2rc1","v3.2b2","v3.2b1","v3.2a4","v3.2a3","v3.2a2","v3.2a1","v3.1","v3.1rc2","v3.1rc1","v3.1b1","v3.1a2","v3.1a1","v3.0rc3","v3.0rc2","v3.0rc1","v3.0b3","v3.0b2","v3.0b1","v3.0a5","v3.0a4","v3.0a3","v3.0a2","v3.0a1","v2.4","v2.4c1","v2.4b2","v2.4b1","v2.4a3","v2.4a2","v2.4a1","v2.3c2","v2.3c1","v2.2a3","v2.1","v2.1c2","v2.1c1","v2.1b2","v2.1b1","v2.1a2","v2.1a1","v2.0","v2.0c1","v2.0b2","v2.0b1","v1.6a2","v1.6a1","v1.5.2","v1.5.2c1","v1.5.2b2","v1.5.2b1","v1.5.2a2","v1.5.2a1","v1.5.1","v1.5","v1.5b2","v1.5b1","v1.5a4","v1.5a3","v1.5a2","v1.5a1","v1.4","v1.4b3","v1.4b2","v1.4b1","v1.3","v1.3b1","v1.2","v1.2b4","v1.2b3","v1.2b2","v1.2b1","v1.1.1","v1.1","v1.0.2","v1.0.1","v0.9.9","v0.9.8"],"database_specific":{"source":"https://github.com/psf/advisory-database/blob/main/advisories/python/PSF-2024-13.json"}}],"schema_version":"1.7.5"}