Vulnerability
CVE-2025-0938
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.
79 advisories report this vulnerability, across 15 ecosystems.
Advisories
-
ALAS2-2025-2797
Amazon Linux 2 2017.12 - ALAS2-2025-2797: medium priority package update for python
-
ALAS2-2025-2815
Amazon Linux 2 2017.12 - ALAS2-2025-2815: medium priority package update for python3
-
ALAS2023-2025-871
Amazon Linux 2023 - ALAS2023-2025-871: Medium priority package update for python3.11
-
ALAS2023-2025-898
Amazon Linux 2023 - ALAS2023-2025-898: Medium priority package update for python3.9
-
ALAS2023-2025-899
Amazon Linux 2023 - ALAS2023-2025-899: Medium priority package update for python3.12
-
ALPINE-CVE-2025-0938
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…
- ALPINE-EDGE-CVE-2025-0938
-
ALSA-2025:23530
Important: python39:3.9 security update
-
ALSA-2025:6977
Moderate: python3.9 security update
-
ALSA-2025:7107
Moderate: python3.12 security update
-
ALSA-2025:7109
Moderate: python3.11 security update
-
ALSA-2026:5588
Moderate: python3 security update
-
AZL-56231
CVE-2025-0938 affecting package python3 for versions less than 3.12.9-1
-
AZL-56343
CVE-2025-0938 affecting package python3 for versions less than 3.9.19-10
- CGA-42vh-qv2v-26gc
- CGA-539h-9pc8-9966
- CGA-79g3-9jmv-v39j
- CGA-9jm2-92j9-6j5h
- CGA-grvg-rqx9-7qcg
- CGA-h8j3-8r3w-3r5r
- CGA-h8w3-v52w-xgr3
- CGA-hjxf-2929-v7xp
- CGA-mmh7-3wrq-48mh
- CGA-x59j-9jf8-vmq3
-
CNA-CVE-2025-0938
URL parser allowed square brackets in domain names
-
DEBIAN-CVE-2025-0938
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…
-
DLA-4087-1
python3.9 - security update
-
DLA-4354-1
pypy3 - security update
-
ELSA-2025-23530
ELSA-2025-23530: python39:3.9 security update (IMPORTANT)
-
ELSA-2025-6977
ELSA-2025-6977: python3.9 security update (MODERATE)
-
ELSA-2025-7107
ELSA-2025-7107: python3.12 security update (MODERATE)
-
ELSA-2025-7109
ELSA-2025-7109: python3.11 security update (MODERATE)
-
ELSA-2026-5588
ELSA-2026-5588: python3 security update (MODERATE)
-
OESA-2025-1148
python3 security update
-
OESA-2025-1149
python3 security update
-
OESA-2025-1150
python3 security update
-
OESA-2025-1151
python3 security update
-
RHBA-2025:6294
Red Hat Bug Fix Advisory: python3.12 bug fix and enhancement update
-
RHSA-2025:23530
Red Hat Security Advisory: python39:3.9 security update
-
RHSA-2025:6977
Red Hat Security Advisory: python3.9 security update
-
RHSA-2025:7107
Red Hat Security Advisory: python3.12 security update
-
RHSA-2025:7109
Red Hat Security Advisory: python3.11 security update
-
RHSA-2026:5588
Red Hat Security Advisory: python3 security update
-
RHVEX-CVE-2025-0938
python: cpython: URL parser allowed square brackets in domain names
-
RLSA-2025:23530
Important: python39:3.9 security update
-
RLSA-2025:6977
Moderate: python3.9 security update
-
RLSA-2025:7107
Moderate: python3.12 security update
-
RLSA-2025:7109
Moderate: python3.11 security update
-
SUSE-SU-2025:02074-1
Security update for python313
-
SUSE-SU-2025:0386-1
Security update for python39
-
SUSE-SU-2025:0406-1
Security update for python310
-
SUSE-SU-2025:0419-1
Security update for python311
-
SUSE-SU-2025:0434-1
Security update for python36
-
SUSE-SU-2025:0502-1
Security update for python3
-
SUSE-SU-2025:0514-1
Security update for python
-
SUSE-SU-2025:0521-1
Security update for python312
-
SUSE-SU-2025:0551-1
Security update for python311
-
SUSE-SU-2025:0552-1
Security update for python3
-
SUSE-SU-2025:0553-1
Security update for python
-
SUSE-SU-2025:0554-1
Security update for python3
-
SUSE-SU-2025:0756-1
Security update for python
-
SUSE-SU-2025:0814-1
Security update for python
-
SUSE-SU-2025:20154-1
Security update for python311
-
SUSE-SU-2025:20346-1
Security update for python311
-
SUSE-SU-2025:20374-1
Security update for python311
-
SUSEVEX-CVE-2025-0938
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…
-
UBUNTU-CVE-2025-0938
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…
-
USN-7280-1
python3.10, python3.12, python3.8 vulnerability
-
USN-7280-2
python vulnerability
-
USN-7280-3
python2.7 regression
-
USN-7348-1
python3.5, python3.8 vulnerabilities
-
USN-7348-2
python3.5, python3.8 regression
-
openSUSE-SU-2025:14750-1
python311-3.11.11-3.1 on GA media
-
openSUSE-SU-2025:14751-1
python39-3.9.21-2.1 on GA media
-
openSUSE-SU-2025:14758-1
python310-3.10.16-2.1 on GA media
-
openSUSE-SU-2025:14759-1
python312-3.12.9-1.1 on GA media
-
openSUSE-SU-2025:14760-1
python313-3.13.2-1.1 on GA media
-
openSUSE-SU-2025:14761-1
python314-3.14.0~a4-1.1 on GA media
-
openSUSE-SU-2025:15713-1
python315-3.15.0~a1-1.1 on GA media
References
- https://github.com/python/cpython/commit/526617ed68cde460236c973e5d0a8bad4de896ba
- https://github.com/python/cpython/commit/90e526ae67b172ed7c6c56e7edad36263b0f9403
- https://github.com/python/cpython/commit/a7084f6075c9595ba60119ce8c62f1496f50c568
- https://github.com/python/cpython/commit/b8b4b713c5f8ec0958c7ef8d29d6711889bc94ab
- https://github.com/python/cpython/commit/d89a5f6a6e65511a5f6e0618c4c30a7aa5aba56a
- https://github.com/python/cpython/commit/ff4e5c25666f63544071a6b075ae8b25c98b7a32
- https://github.com/python/cpython/issues/105704
- https://github.com/python/cpython/pull/129418
- https://mail.python.org/archives/list/[email protected]/thread/K4EUG6EKV6JYFIC24BASYOZS4M5XOQIB/
- https://lists.debian.org/debian-lts-announce/2025/03/msg00013.html
- https://security.netapp.com/advisory/ntap-20250314-0002/