CVE-2025-0938 URL parser allowed square brackets in domain names
MediumCVSS 6.3
EPSS 1.5%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
23 packages: 18 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/pypy3(Debian 12) | = 7.3.11+dfsg-2; = 7.3.11+dfsg-2+deb12u1; = 7.3.11+dfsg-2+deb12u2; = 7.3.11+dfsg-2+deb12u3 +29 more | No fix listed | No fix yet |
| ubuntu/pypy3(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/pypy3(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/pypy3(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/pypy3(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| alpine/python3(Alpine v3.18) | < 3.11.12-r0 | 3.11.12-r0 | Fixed |
| alpine/python3(Alpine v3.19) | < 3.11.12-r0 | 3.11.12-r0 | Fixed |
| alpine/python3(Alpine v3.20) | < 3.12.9-r0 | 3.12.9-r0 | Fixed |
| alpine/python3(Alpine v3.21) | < 3.12.9-r0 | 3.12.9-r0 | Fixed |
| alpine/python3(Alpine v3.22) | < 3.12.9-r0 | 3.12.9-r0 | Fixed |
| alpine/python3(Alpine v3.23) | < 3.12.9-r0 | 3.12.9-r0 | Fixed |
| alpine/python3(Alpine v3.24) | < 3.12.9-r0 | 3.12.9-r0 | Fixed |
| azure linux python3(Azure Linux 3.0) | < 3.12.9-1 | 3.12.9-1 | Fixed |
| cbl-mariner python3(CBL-Mariner 2.0) | < 3.9.19-10 | 3.9.19-10 | Fixed |
| debian/pypy3(Debian 13) | < 7.3.18+dfsg-2 | 7.3.18+dfsg-2 | Fixed |
| debian/pypy3(Debian 14) | < 7.3.18+dfsg-2 | 7.3.18+dfsg-2 | Fixed |
| debian/python3.11(Debian 12) | < 3.11.2-6+deb12u6; = 3.11.2-6; = 3.11.2-6+deb12u1; = 3.11.2-6+deb12u2 +3 more | 3.11.2-6+deb12u6 | Fixed |
| debian/python3.13(Debian 13) | < 3.13.2-1 | 3.13.2-1 | Fixed |
| Python Software Foundation CPython | < 3.9.22; >= 3.10.0, < 3.10.17; >= 3.11.0, < 3.11.12; >= 3.12.0, < 3.12.9 +2 more | 3.9.22, 3.10.17, 3.11.12, 3.12.9, 3.13.2, 3.14.0a5 | Fixed |
| ubuntu/python2.7(Ubuntu 22.04) | < 2.7.18-13ubuntu1.5+esm6 | 2.7.18-13ubuntu1.5+esm6 | Fixed |
| ubuntu/python3.10(Ubuntu 22.04) | < 3.10.12-1~22.04.9 | 3.10.12-1~22.04.9 | Fixed |
| ubuntu/python3.11(Ubuntu 22.04) | < 3.11.0~rc1-1~22.04.1~esm3 | 3.11.0~rc1-1~22.04.1~esm3 | Fixed |
| ubuntu/python3.12(Ubuntu 24.04) | < 3.12.3-1ubuntu0.5 | 3.12.3-1ubuntu0.5 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| cbl-mariner python3(CBL-Mariner:2.0) | < 3.9.19-10 | 3.9.19-10 |
| azure linux python3(Azure Linux:3.0) | < 3.12.9-1 | 3.12.9-1 |
| debian/pypy3(Debian:12) | All versions | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.11+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.11+dfsg-2+deb12u1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.11+dfsg-2+deb12u2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.11+dfsg-2+deb12u3 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.12+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.12~rc1+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.12~rc2+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.13+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.14+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.15+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.16+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.16+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.17+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.17+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.17+dfsg-3 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.18+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.18+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.19+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.19+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.20+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.20+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.20+dfsg-3 | No fix listed |
Show 41 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/pypy3(Debian:12) | = 7.3.20+dfsg-4 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.21+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.21+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.21+dfsg-3 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.21+dfsg-4 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.22+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.23+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 7.3.23+dfsg-2 | No fix listed |
| debian/pypy3(Debian:12) | = 8.0.0+dfsg-1 | No fix listed |
| debian/pypy3(Debian:12) | = 8.0.1+dfsg-1 | No fix listed |
| debian/pypy3(Debian:13) | < 7.3.18+dfsg-2 | 7.3.18+dfsg-2 |
| debian/pypy3(Debian:14) | < 7.3.18+dfsg-2 | 7.3.18+dfsg-2 |
| debian/python3.11(Debian:12) | < 3.11.2-6+deb12u6 | 3.11.2-6+deb12u6 |
| debian/python3.11(Debian:12) | = 3.11.2-6 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u1 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u2 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u3 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u4 | No fix listed |
| debian/python3.11(Debian:12) | = 3.11.2-6+deb12u5 | No fix listed |
| debian/python3.13(Debian:13) | < 3.13.2-1 | 3.13.2-1 |
| Python Software Foundation CPython | < 3.9.22 | 3.9.22 |
| Python Software Foundation CPython | >= 3.10.0, < 3.10.17 | 3.10.17 |
| Python Software Foundation CPython | >= 3.11.0, < 3.11.12 | 3.11.12 |
| Python Software Foundation CPython | >= 3.12.0, < 3.12.9 | 3.12.9 |
| Python Software Foundation CPython | >= 3.13.0, < 3.13.2 | 3.13.2 |
| Python Software Foundation CPython | >= 3.14.0a1, < 3.14.0a5 | 3.14.0a5 |
| ubuntu/pypy3(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/python3.10(Ubuntu:22.04) | < 3.10.12-1~22.04.9 | 3.10.12-1~22.04.9 |
| ubuntu/python2.7(Ubuntu:22.04) | < 2.7.18-13ubuntu1.5+esm6 | 2.7.18-13ubuntu1.5+esm6 |
| ubuntu/python3.11(Ubuntu:22.04) | < 3.11.0~rc1-1~22.04.1~esm3 | 3.11.0~rc1-1~22.04.1~esm3 |
| alpine/python3(Alpine:v3.18) | < 3.11.12-r0 | 3.11.12-r0 |
| alpine/python3(Alpine:v3.19) | < 3.11.12-r0 | 3.11.12-r0 |
| alpine/python3(Alpine:v3.20) | < 3.12.9-r0 | 3.12.9-r0 |
| alpine/python3(Alpine:v3.21) | < 3.12.9-r0 | 3.12.9-r0 |
| alpine/python3(Alpine:v3.22) | < 3.12.9-r0 | 3.12.9-r0 |
| alpine/python3(Alpine:v3.23) | < 3.12.9-r0 | 3.12.9-r0 |
| alpine/python3(Alpine:v3.24) | < 3.12.9-r0 | 3.12.9-r0 |
| ubuntu/pypy3(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/python3.12(Ubuntu:24.04) | < 3.12.3-1ubuntu0.5 | 3.12.3-1ubuntu0.5 |
| ubuntu/pypy3(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/pypy3(Ubuntu:26.10) | All versions | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-0938 vendor-advisory
- github.com issue-tracking
- github.com patch
- mail.python.org vendor-advisory
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- security.netapp.com
- lists.debian.org
- Ubuntu CVE tracker vendor-advisory
- USN-7280-1 vendor-advisory
- USN-7348-1 vendor-advisory
- USN-7348-2 vendor-advisory
- USN-7280-2 vendor-advisory
- USN-7280-3 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory