CVE-2024-11168: Improper validation of IPv6 and IPvFuture addresses
Improper validation of IPv6 and IPvFuture addresses
Other sources
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.
— Debian
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/python3.11to a version that resolves this vulnerability.Fixed in 3.11.2-6+deb12u5 - Upgrade
Upgrade
debian/python3.12to a version that resolves this vulnerability.Fixed in 3.12.10-1 - Upgrade
Upgrade
debian/python3.9to a version that resolves this vulnerability.Fixed in 3.9.2-1+deb11u3 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.9.19-7
Event History
Frequently Asked Questions
What is the severity of CVE-2024-11168?
CVE-2024-11168 is considered a medium severity vulnerability due to potential Server-Side Request Forgery (SSRF) exploitation.
How do I fix CVE-2024-11168?
To fix CVE-2024-11168, upgrade the affected urllib library to the versions specified in the release notes for your system.
Which versions of Python are affected by CVE-2024-11168?
CVE-2024-11168 affects urllib versions in Python 3.9, 3.11, and 3.12 prior to their latest stable releases.
What kind of attack does CVE-2024-11168 enable?
CVE-2024-11168 enables Server-Side Request Forgery (SSRF) attacks when improperly validated bracketed hosts are processed.
Is there a workaround for CVE-2024-11168 if I cannot upgrade?
If upgrading is not possible, users should implement validation checks to ensure URLs are formatted correctly before processing them.