CVE-2024-11168
JSON

6.3medium

Improper validation of IPv6 and IPvFuture addresses

Severity
6.3medium CVSS:4.0 by PSF
Exploit likelihood
0.66% (higher than 52% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
PSF
Also known as
PSF-2024-13BIT-LIBPYTHON-2024-11168BIT-PYTHON-2024-11168BIT-PYTHON-MIN-2024-11168

Description

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.

Affected

Product or packageVersionsReported by
Python Software Foundation CPythonbefore 3.9.21, from 3.10.0 before 3.10.16, from 3.11.0 before 3.11.4, from 3.12.0a1 before 3.12.0b1CVE List
python_software_foundation cpythonbefore 3.11.4, from 3.12.0a1 before 3.12.0b1CVE List
https://github.com/python/cpythonbefore 29f348e232e82938ba2165843c448c2b291504c5, before b2171a2fd41416cf68afd67460578631d755a550, before 634ded45545ce8cbd6fd5d49785613dd7fa9b89e, before ddca2953191c67a12b1f19d6bca41016c6ae7132Python Software Foundation
libpython (Bitnami)before 3.9.21, from 3.10.0 before 3.10.16, from 3.11.0 before 3.11.4Bitnami Vulnerability Database
python (Bitnami)before 3.9.21, from 3.10.0 before 3.10.16, from 3.11.0 before 3.11.4Bitnami Vulnerability Database
python-min (Bitnami)before 3.9.21, from 3.10.0 before 3.10.16, from 3.11.0 before 3.11.4Bitnami Vulnerability Database

All scores

PSF6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/AU:N
CISA-ADP3.7low CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-918

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

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.

NVD (es)

Las funciones urllib.parse.urlsplit() y urlparse() validaron incorrectamente los hosts entre corchetes (`[]`), lo que permitió el uso de hosts que no eran IPv6 o IPvFuture. Este comportamiento no se ajustaba a RFC 3986 y potencialmente habilitaba SSRF si una URL es procesada por más de un analizador de URL.

References

https://github.com/python/cpython/commit/29f348e232e82938ba2165843c448c2b291504c5fix, patch, web
https://github.com/python/cpython/pull/103849patch, web
https://github.com/python/cpython/issues/103848issue-tracking, report, web
https://mail.python.org/archives/list/security-announce@python.org/thread/XPWB6XVZ5G5KGEI63M4AWLIEUF5BPH4T/advisory, vendor-advisory, web
https://github.com/python/cpython/commit/b2171a2fd41416cf68afd67460578631d755a550fix, patch, web
https://github.com/python/cpython/commit/634ded45545ce8cbd6fd5d49785613dd7fa9b89efix, patch, web
https://github.com/python/cpython/commit/ddca2953191c67a12b1f19d6bca41016c6ae7132fix, patch, web
https://security.netapp.com/advisory/ntap-20250411-0004/web
https://lists.debian.org/debian-lts-announce/2024/12/msg00000.htmlweb
https://nvd.nist.gov/vuln/detail/CVE-2024-11168web

Sources

SourceRecordLicence
CVE ListCVE-2024-11168 changed 2025-11-03CVE Terms of Use
Python Software FoundationPSF-2024-13 changed 2025-10-09CC-BY-4.0
NVDCVE-2024-11168 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-LIBPYTHON-2024-11168 changed 2025-11-06Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-2024-11168 changed 2025-11-06Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-MIN-2024-11168 changed 2025-11-06Apache-2.0