CVE-2025-0938: URL parser allowed square brackets in domain names
Vulnerability summary
CVE-2025-0938 is a medium (CVSS 6.3) Improper Input Validation vulnerability in python software foundation cpython. EPSS estimates a 1.56% chance of exploitation in the next 30 days, higher than 75.1% of scored vulnerabilities.
Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 12 · Related 10Timeline
- 31-01-2025PublishedVulnerability first disclosed.
- 31-07-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
8 scores · 8 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · UbuntuEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
- OSV · DebianEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · WolfiEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
- OSV · ChainguardEcosystem advisory · calculated6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N
- NVDNIST6.3MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
1.56%
Chance of exploitation in the next 30 days
Percentile
75%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.56% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat34 products
- platform-python< 0:3.6.8-74.el8_10
- platform-python-debug< 0:3.6.8-74.el8_10
- platform-python-devel< 0:3.6.8-74.el8_10
- python-unversioned-command< 0:3.9.21-2.el9
- python3< 0:3.9.21-2.el9 | < 0:3.6.8-74.el8_10
Suse29 products
- python-base&distro=SUSE Linux Enterprise Module for Package Hub 15 SP6< 2.7.18-150000.71.1 | < 2.7.18-150000.74.1
- python-base&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5< 2.7.18-33.41.1 | < 2.7.18-33.44.1
- python-doc&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5< 2.7.18-33.41.1 | < 2.7.18-33.44.1
- python3-base&distro=SUSE Linux Enterprise Server LTSS Extended Security 12 SP5< 3.4.10-25.148.1
- python3-core&distro=SUSE Linux Enterprise Micro 5.1< 3.6.15-150000.3.170.1
Opensuse21 products
- python-base&distro=openSUSE Leap 15.6< 2.7.18-150000.71.1 | < 2.7.18-150000.74.1
- python-doc&distro=openSUSE Leap 15.6< 2.7.18-150000.71.1 | < 2.7.18-150000.74.1
- python3-core&distro=openSUSE Leap 15.6< 3.6.15-150300.10.81.1
- python3-documentation&distro=openSUSE Leap 15.6< 3.6.15-150300.10.81.1
- python310-core&distro=openSUSE Leap 15.6< 3.10.16-150400.4.69.1
Ubuntu11 products
- pypy3All versions (No fix recorded)
- python2.7< 2.7.6-8ubuntu0.6+esm25 | < 2.7.6-8ubuntu0.6+esm28 | < 2.7.12-1ubuntu0~16.04.18+esm16 | < 2.7.17-1~18.04ubuntu1.13+esm11 | < 2.7.18-1~20.04.7+esm7 | < 2.7.18-13ubuntu1.5+esm6
- python3.10< 3.10.12-1~22.04.9
- python3.11< 3.11.0~rc1-1~22.04.1~esm3
- python3.12< 3.12.3-1ubuntu0.5
Chainguard5 products
- python-3.10< 3.10.19-r0
- python-3.11< 3.11.14-r0
- python-3.12< 3.12.9-r0
- python-3.13< 3.13.2-r0
- python-3.9< 3.9.25-r0
Wolfi4 products
- python-3.10< 3.10.19-r0
- python-3.11< 3.11.14-r0
- python-3.12< 3.12.9-r0
- python-3.13< 3.13.2-r0
Debian3 products
- pypy3All versions (No fix recorded) | < 7.3.18+dfsg-2
- python3.11< 3.11.2-6+deb12u6
- python3.13< 3.13.2-1
Alpine1 product
- python3< 3.11.12-r0 | < 3.12.9-r0
Python software foundation1 product
- cpython< 3.9.22 | ≥ 3.10.0, < 3.10.17 | ≥ 3.11.0, < 3.11.12 | ≥ 3.12.0, < 3.12.9 | ≥ 3.13.0, < 3.13.2 | ≥ 3.14.0a1, < 3.14.0a5
9 vendors · 109 products
References
59 links- mail.python.org/archives/list/security-announce@python.org/thread/K4EUG6EKV6JYFIC24BASYOZS4M5XOQIB/Vendor AdvisoryREPORTAdvisory
Show all 59 references
- github.com/python/cpythonPACKAGE
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory
- lists.opensuse.org/archives/…Advisory