CVE-2019-10160 Information disclosure in python

Critical 9.8 Published Updated

Attackers can craft URLs to leak cookies and credentials to wrong hosts due to flawed parsing in Python's urllib.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-10160?

CVE-2019-10160 is a critical vulnerability in Canonical Ubuntu Linux, published on 7 Jun 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A security regression of CVE-2019-9636 was discovered in python since commit d537ab0ff9767ef024f26246899728f0116b1ec3 affecting versions 2.7, 3.5, 3.6, 3.7 and from v3.8.0a4 through v3.8.0b1, which still allows an attacker to exploit CVE-2019-9636 by abusing the user and password parts of a URL. 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.

Weakness: CWE-522, CWE-172

Which versions are affected by CVE-2019-10160?

It affects 14 products.

Linux distribution packages (40)
python Red Hat:enterprise_linux:7::clientAll versions0:2.7.5-80.el7_6
python-debug Red Hat:enterprise_linux:7::clientAll versions0:2.7.5-80.el7_6
python-debuginfo Red Hat:enterprise_linux:7::clientAll versions0:2.7.5-80.el7_6
python-devel Red Hat:enterprise_linux:7::clientAll versions0:2.7.5-80.el7_6
python-libs Red Hat:enterprise_linux:7::clientAll versions0:2.7.5-80.el7_6
python-test Red Hat:enterprise_linux:7::clientAll versions0:2.7.5-80.el7_6
python-tools Red Hat:enterprise_linux:7::clientAll versions0:2.7.5-80.el7_6
tkinter Red Hat:enterprise_linux:7::clientAll versions0:2.7.5-80.el7_6
python Red Hat:enterprise_linux:7::computenodeAll versions0:2.7.5-80.el7_6
python-debug Red Hat:enterprise_linux:7::computenodeAll versions0:2.7.5-80.el7_6
python-debuginfo Red Hat:enterprise_linux:7::computenodeAll versions0:2.7.5-80.el7_6
python-devel Red Hat:enterprise_linux:7::computenodeAll versions0:2.7.5-80.el7_6
python-libs Red Hat:enterprise_linux:7::computenodeAll versions0:2.7.5-80.el7_6
python-test Red Hat:enterprise_linux:7::computenodeAll versions0:2.7.5-80.el7_6
python-tools Red Hat:enterprise_linux:7::computenodeAll versions0:2.7.5-80.el7_6
tkinter Red Hat:enterprise_linux:7::computenodeAll versions0:2.7.5-80.el7_6
python Red Hat:enterprise_linux:7::serverAll versions0:2.7.5-80.el7_6
python-debug Red Hat:enterprise_linux:7::serverAll versions0:2.7.5-80.el7_6
python-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:2.7.5-80.el7_6
python-devel Red Hat:enterprise_linux:7::serverAll versions0:2.7.5-80.el7_6
python-libs Red Hat:enterprise_linux:7::serverAll versions0:2.7.5-80.el7_6
python-test Red Hat:enterprise_linux:7::serverAll versions0:2.7.5-80.el7_6
python-tools Red Hat:enterprise_linux:7::serverAll versions0:2.7.5-80.el7_6
tkinter Red Hat:enterprise_linux:7::serverAll versions0:2.7.5-80.el7_6
python Red Hat:enterprise_linux:7::workstationAll versions0:2.7.5-80.el7_6
python-debug Red Hat:enterprise_linux:7::workstationAll versions0:2.7.5-80.el7_6
python-debuginfo Red Hat:enterprise_linux:7::workstationAll versions0:2.7.5-80.el7_6
python-devel Red Hat:enterprise_linux:7::workstationAll versions0:2.7.5-80.el7_6
python-libs Red Hat:enterprise_linux:7::workstationAll versions0:2.7.5-80.el7_6
python-test Red Hat:enterprise_linux:7::workstationAll versions0:2.7.5-80.el7_6
python-tools Red Hat:enterprise_linux:7::workstationAll versions0:2.7.5-80.el7_6
tkinter Red Hat:enterprise_linux:7::workstationAll versions0:2.7.5-80.el7_6
python SUSE:Linux Enterprise Module for Basesystem 15All versions2.7.14-7.14.2
python-base SUSE:Linux Enterprise Module for Basesystem 15All versions2.7.14-7.14.2
python SUSE:Linux Enterprise Module for Basesystem 15 SP1All versions2.7.14-7.14.2
python-base SUSE:Linux Enterprise Module for Basesystem 15 SP1All versions2.7.14-7.14.2
python SUSE:Linux Enterprise Module for Desktop Applications 15All versions2.7.14-7.14.2
python SUSE:Linux Enterprise Module for Desktop Applications 15 SP1All versions2.7.14-7.14.2
python SUSE:Linux Enterprise Module for Python 2 15 SP1All versions2.7.14-7.14.2
python-base SUSE:Linux Enterprise Module for Python 2 15 SP1All versions2.7.14-7.14.2

Products include Canonical Ubuntu Linux, Debian Debian Linux, Fedoraproject Fedora, Netapp Cloud Backup, Netapp Converged Systems Advisor Agent, Opensuse Leap and 8 more.

How do I fix CVE-2019-10160?

Apply the vendor's patch.

Is CVE-2019-10160 being exploited?

There is no known exploitation of CVE-2019-10160 in the wild and no public exploit code.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as CLSA-2021-1616001357, DEBIAN-CVE-2019-10160, GHSA-379v-rm3f-c48g, PSF-2019-3, RHSA-2019:1587, SUSE-SU-2019:2064-1 and 2 more.

Is CVE-2019-10160 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free