Improper Validation of Specified Type of Input Affecting python package, versions [,3.11.4)[3.12.0a1,3.12.0b1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.06% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-PYTHON-8367198
  • published13 Nov 2024
  • disclosed12 Nov 2024
  • creditJohnJamesUtley

Introduced: 12 Nov 2024

NewCVE-2024-11168  (opens in a new tab)
CWE-1287  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade python to version 3.11.4, 3.12.0b1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Validation of Specified Type of Input due to improper validation in the urlsplit and urlparse functions. An attacker can manipulate URL parsing by crafting malicious URLs that bypass expected host validations.

PoC

from urllib.parse import urlsplit

parsedURL = urlsplit('scheme://user@[regname]/Path')
print(parsedURL.hostname) # Prints 'regname'

CVSS Scores

version 4.0
version 3.1