CVE-2025-0938: URL parser allowed square brackets in domain names

Published Jan 31, 2025
·
Updated

Last updated 24 March 2025

Other sources

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.

NVD

This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.

Launchpad

URL parser allowed square brackets in domain names

Microsoft

Affected Software

10 affected componentsFixes available
Python Software Foundation Python
debian/pypy3<=7.3.5+dfsg-2+deb11u2, <=7.3.5+dfsg-2+deb11u4, <=7.3.11+dfsg-2+deb12u3
7.3.19+dfsg-2
debian/python3.11<=3.11.2-6+deb12u5, <=3.11.2-6+deb12u3
debian/python3.12
3.12.10-1
debian/python3.13
3.13.3-2
debian/python3.9<=3.9.2-1
3.9.2-1+deb11u3
Microsoft cbl2 python3 3.9.19-10
Microsoft azl3 python3 3.12.3-5
Microsoft azl3 python3 3.12.9-1
Microsoft cbl2 python3 3.9.19-13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/pypy3 to a version that resolves this vulnerability.

    Fixed in 7.3.19+dfsg-2
  2. Upgrade

    Upgrade debian/python3.12 to a version that resolves this vulnerability.

    Fixed in 3.12.10-1
  3. Upgrade

    Upgrade debian/python3.13 to a version that resolves this vulnerability.

    Fixed in 3.13.3-2
  4. Upgrade

    Upgrade debian/python3.9 to a version that resolves this vulnerability.

    Fixed in 3.9.2-1+deb11u3

Event History

Jan 31, 2025
CVE Published
via MITRE·05:51 PM
Data Sourced
via MITRE·05:51 PM
DescriptionWeakness
Data Sourced
via Red Hat·06:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:15 PM
DescriptionSeverityWeakness
Feb 25, 2025
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
Updated
via Microsoft·08:00 AM
DescriptionSeverity
Mar 20, 2025
Data Sourced
via Launchpad·07:40 PM
Description
Mar 28, 2025
Data Sourced
via Ubuntu·07:40 PM
RemedyDescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-0938?

CVE-2025-0938 has been classified as a medium severity vulnerability due to potential denial of service risks associated with invalid URL parsing.

2

How do I fix CVE-2025-0938?

To fix CVE-2025-0938, update to the latest version of Python where the vulnerability has been addressed.

3

What software is affected by CVE-2025-0938?

CVE-2025-0938 affects the standard library functions of Python, specifically in the urllib.parse module.

4

What are the implications of CVE-2025-0938?

The implications of CVE-2025-0938 include the possibility of malformed URLs causing unexpected behavior in applications relying on URL parsing.

5

How does CVE-2025-0938 impact web applications?

CVE-2025-0938 can potentially lead to security issues in web applications by allowing the processing of invalid domain names.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203