We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-0938

URL parser allowed square brackets in domain names



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.

Reserved 2025-01-31 | Published 2025-01-31 | Updated 2025-02-04 | Assigner PSF


MEDIUM: 6.3CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N

Problem types

CWE-20 Improper Input Validation

Product status

Default status
unaffected

Any version before 3.12.9
affected

3.13.0 before 3.13.2
affected

References

github.com/python/cpython/issues/105704 issue-tracking

github.com/python/cpython/pull/129418 patch

mail.python.org/.../thread/K4EUG6EKV6JYFIC24BASYOZS4M5XOQIB/ vendor-advisory

github.com/...ommit/d89a5f6a6e65511a5f6e0618c4c30a7aa5aba56a patch

github.com/...ommit/90e526ae67b172ed7c6c56e7edad36263b0f9403 patch

github.com/...ommit/a7084f6075c9595ba60119ce8c62f1496f50c568 patch

cve.org (CVE-2025-0938)

nvd.nist.gov (CVE-2025-0938)

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2025-0938

Support options

Helpdesk Chat, Email, Knowledgebase
Subscribe to our newsletter to learn more about our work.