You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[CVE-2024-9287] ensure that bracketed hosts found by urlsplit are of IPv6 or IPvFuture format
Fix urlparse incorrectly retrieves IPv4 and regular name hosts from inside of brackets
Reproducer is
python3 -c \
'from urllib.parse import urlparse; print(urlparse("https://user:some]password[@host.com"))'
This command should fail with the error "ValueError: '@host.com'
does not appear to be an IPv4 or IPv6 address". If it doesn’t and produces
ParseResult(scheme='https', netloc='user:some]password[@host.com',
path='', params='', query='', fragment='')
it is this bug.
Fixes: bsc#1233307 (CVE-2024-11168)
Fixes: gh#python#103848
Co-authored-by: JohnJamesUtley <[email protected]>
From-PR: gh#python/cpython!103849
Patch: CVE-2024-11168-validation-IPv6-addrs.patch
0 commit comments