First published: Mon Jun 03 2019(Updated: )
A security regression for <a href="https://access.redhat.com/security/cve/CVE-2019-9636">CVE-2019-9636</a> was discovered in python's functions urllib.parse.urlsplit and urllib.parse.urlparse, introduced with commit d537ab0ff9767ef024f26246899728f0116b1ec3. No upstream python version is affected by this regression but the vulnerable commit may already have been included downstream as part of the original fix for <a href="https://access.redhat.com/security/cve/CVE-2019-9636">CVE-2019-9636</a>. Affected python versions ignore the user/password part before `@` in the netloc component of a URL, thus it still allows an attacker to exploit the vulnerability as in <a href="https://access.redhat.com/security/cve/CVE-2019-9636">CVE-2019-9636</a>. Those functions do not properly handle URLs encoded with Punycode/Internationalizing Domain Names in Applications (IDNA), which may result in a wrong domain name (specifically the netloc component of URL - user@domain:port) being returned by those functions. When an application parses user-supplied URLs to store cookies, authentication credentials, or other kind of information, it is possible for an attacker to provide specially crafted URLs to make the application locate host-related information (e.g. cookies, authentication data) and send them to a different host than where it should, unlike if the URLs had been correctly parsed. The result of an attack may vary based on the application. External Reference <a href="https://python-security.readthedocs.io/vuln/urlsplit-nfkc-normalization2.html">https://python-security.readthedocs.io/vuln/urlsplit-nfkc-normalization2.html</a> Vulnerable commit <a href="https://github.com/python/cpython/commit/d537ab0ff9767ef024f26246899728f0116b1ec3">https://github.com/python/cpython/commit/d537ab0ff9767ef024f26246899728f0116b1ec3</a> Upstream patch <a href="https://github.com/python/cpython/commit/8d0ef0b5edeae52960c7ed05ae8a12388324f87e">https://github.com/python/cpython/commit/8d0ef0b5edeae52960c7ed05ae8a12388324f87e</a>
Credit: secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|---|---|
redhat/python | <0:2.7.5-80.el7_6 | 0:2.7.5-80.el7_6 |
redhat/python27-python | <0:2.7.16-6.el6 | 0:2.7.16-6.el6 |
redhat/python27-python | <0:2.7.16-6.el7 | 0:2.7.16-6.el7 |
redhat/imgbased | <0:1.1.9-0.1.el7e | 0:1.1.9-0.1.el7e |
redhat/ovirt-node-ng | <0:4.3.5-0.20190717.0.el7e | 0:4.3.5-0.20190717.0.el7e |
redhat/redhat-release-virtualization-host | <0:4.3.5-2.el7e | 0:4.3.5-2.el7e |
redhat/redhat-virtualization-host | <0:4.3.5-20190722.0.el7_7 | 0:4.3.5-20190722.0.el7_7 |
debian/python2.7 | 2.7.18-8+deb11u1 | |
Python 2.7 | >=2.7.0<2.7.17 | |
Python 2.7 | >=3.5.0<3.5.8 | |
Python 2.7 | >=3.6.0<3.6.9 | |
Python 2.7 | >=3.7.0<3.7.4 | |
Python 2.7 | =3.8.0-alpha4 | |
Python 2.7 | =3.8.0-beta1 | |
Red Hat Enterprise Linux Desktop | =7.0 | |
Red Hat Enterprise Linux Server EUS | =7.6 | |
Red Hat Enterprise Linux Server | =7.0 | |
Red Hat Enterprise Linux Server | =7.6 | |
Red Hat Enterprise Linux Server | =7.6 | |
Red Hat Enterprise Linux Workstation | =7.0 | |
Debian Linux | =8.0 | |
Debian Linux | =9.0 | |
SUSE Linux | =15.0 | |
SUSE Linux | =15.1 | |
Red Hat Fedora | =29 | |
Red Hat Fedora | =30 | |
Red Hat Fedora | =31 | |
Ubuntu | =12.04 | |
Ubuntu | =14.04 | |
Ubuntu | =16.04 | |
Ubuntu | =18.04 | |
Ubuntu | =19.04 | |
All of | ||
Red Hat Enterprise Virtualization | =4.0 | |
Red Hat Enterprise Linux | =7.0 | |
NetApp Cloud Backup | ||
NetApp Converged Systems Advisor Agent | ||
Red Hat Enterprise Virtualization | =4.0 | |
Red Hat Enterprise Linux | =7.0 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
(Appears in the following advisories)
CVE-2019-10160 is a security regression vulnerability in Python, affecting versions 2.7, 3.5, 3.6, 3.7, and from v3.8.0a4 through v3.8.0b1.
CVE-2019-10160 has a severity rating of 9.8 (Critical).
CVE-2019-10160 affects Python versions 2.7, 3.5, 3.6, 3.7, and from v3.8.0a4 through v3.8.0b1.
CVE-2019-10160 can be exploited by abusing the user and password parts of a URL.
Yes, remediation steps are available. Please refer to the provided references for more information.