Improper Validation of Specified Type of Input Affecting cpython package, versions [,3.11.9)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.18% (40th 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-CONAN-CPYTHON-10075475
  • published8 May 2025
  • disclosed12 Nov 2024
  • creditJohnJamesUtley

Introduced: 12 Nov 2024

CVE-2024-11168  (opens in a new tab)
CWE-1287  (opens in a new tab)

How to fix?

Upgrade cpython to version 3.11.9 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 Base Scores

version 4.0
version 3.1