CVE-2025-0938

Public on 2025-01-31
Modified on 2025-02-04
Description

The Python standard library functions `urllib.parse.urlsplit` and `urlparse` accepted domain names that included square brackets which isn't valid according to RFC 3986. Square brackets are only meant to be used as delimiters for specifying IPv6 and IPvFuture hosts in URLs. This could result in differential parsing across the Python URL parser and other specification-compliant URL parsers.

Severity
Medium
See what this means
CVSS v3 Base Score
5.3
See breakdown

Affected Packages

Platform Package Release Date Advisory
Amazon Linux 2 - Core python 2025-03-25 ALAS2-2025-2797
Amazon Linux 2 - Core python3 2025-04-01 ALAS2-2025-2815
Amazon Linux 2023 python3.11 2025-03-06 ALAS2023-2025-871
Amazon Linux 2023 python3.12 2025-03-26 ALAS2023-2025-899
Amazon Linux 2023 python3.9 2025-03-26 ALAS2023-2025-898

CVSS Scores

Score Type Score Vector
Amazon Linux CVSSv3 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N