ADVISORIES

CVE Program

CNA-CVE-2024-11168

Improper validation of IPv6 and IPvFuture addresses

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.

Affected packages

EcosystemPackageAffected versions
Pythonpython
All versions before 3.9.21 (fixed in 3.9.21)
From 3.10.0 before 3.10.16 (fixed in 3.10.16)
From 3.11.0 before 3.11.4 (fixed in 3.11.4)
From 3.12.0a1 before 3.12.0b1 (fixed in 3.12.0b1)

References