CVE-2019-10160
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.
What to do
Fixed builds are available from Red Hat, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | python2.7 | Fixed | 2.7.15-4ubuntu4~18.04.1 | UBUNTU-CVE-2019-10160 |
| Ubuntu 18.04 | python3.6 | Fixed | 3.6.8-1~18.04.2 | UBUNTU-CVE-2019-10160 |
| Ubuntu 16.04 | python2.7 | Fixed | 2.7.12-1ubuntu0~16.04.8 | UBUNTU-CVE-2019-10160 |
| Ubuntu 16.04 | python3.5 | Fixed | 3.5.2-2ubuntu0~16.04.8 | UBUNTU-CVE-2019-10160 |
| Ubuntu 14.04 | python2.7 | Fix pending | 2.7.6-8ubuntu0.6+esm2 (Ubuntu Pro) | UBUNTU-CVE-2019-10160 |
| Ubuntu 14.04 | python3.4 | Fix pending | 3.4.3-1ubuntu1~14.04.7+esm2 (Ubuntu Pro) | UBUNTU-CVE-2019-10160 |
| Ubuntu 14.04 | python3.5 | Fix pending | 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2019-10160 |
| Red Hat Enterprise Linux 8 | platform-python | Not affected | ||
| Red Hat Enterprise Linux 8 | platform-python-debug | Not affected | ||
| Red Hat Enterprise Linux 8 | platform-python-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python-PyMySQL | Not affected | ||
| Red Hat Enterprise Linux 8 | python-distro | Not affected | ||
| Red Hat Enterprise Linux 8 | python-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | python-docutils | Not affected | ||
| Red Hat Enterprise Linux 8 | python-nose | Not affected | ||
| Red Hat Enterprise Linux 8 | python-nose-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | python-pygments | Not affected | ||
| Red Hat Enterprise Linux 8 | python-pymongo | Not affected | ||
| Red Hat Enterprise Linux 8 | python-pymongo-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | python-sqlalchemy | Not affected | ||
| Red Hat Enterprise Linux 8 | python-sqlalchemy-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | python-virtualenv | Not affected | ||
| Red Hat Enterprise Linux 8 | python-virtualenv-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | python-wheel | Not affected | ||
| Red Hat Enterprise Linux 8 | python2 | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-debug | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-test | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-tkinter | Not affected | ||
| Red Hat Enterprise Linux 8 | python2-tools | Not affected | ||
| Red Hat Enterprise Linux 8 | python3 | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-PyMySQL | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-bson | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-distro | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-docs | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-docutils | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-idle | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-libs | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-nose | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-pygments | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-pymongo | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-pymongo-gridfs | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-scipy | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-sqlalchemy | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-test | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-tkinter | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-virtualenv | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-wheel | Not affected | ||
| Red Hat Enterprise Linux 8 | python3-wheel-wheel | Not affected | ||
| Red Hat Enterprise Linux 8 | python36 | Not affected | ||
| Red Hat Enterprise Linux 8 | python36-debug | Not affected | ||
| Red Hat Enterprise Linux 8 | python36-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | python36-rpm-macros | Not affected | ||
| Red Hat Enterprise Linux 8 | scipy | Not affected | ||
| Red Hat Enterprise Linux 7 | imgbased | Fixed | 0:1.1.9-0.1.el7ev | RHSA-2019:2437 |
| Red Hat Enterprise Linux 7 | ovirt-node-ng | Fixed | 0:4.3.5-0.20190717.0.el7ev | RHSA-2019:2437 |
| Red Hat Enterprise Linux 7 | ovirt-node-ng-nodectl | Fixed | 0:4.3.5-0.20190717.0.el7ev | RHSA-2019:2437 |
| Red Hat Enterprise Linux 7 | python | Fixed | 0:2.7.5-80.el7_6 | RHSA-2019:1587 |
| Red Hat Enterprise Linux 7 | python-debug | Fixed | 0:2.7.5-80.el7_6 | RHSA-2019:1587 |
| Red Hat Enterprise Linux 7 | python-devel | Fixed | 0:2.7.5-80.el7_6 | RHSA-2019:1587 |
| Red Hat Enterprise Linux 7 | python-imgbased | Fixed | 0:1.1.9-0.1.el7ev | RHSA-2019:2437 |
| Red Hat Enterprise Linux 7 | python-libs | Fixed | 0:2.7.5-80.el7_6 | RHSA-2019:1587 |
| Red Hat Enterprise Linux 7 | python-test | Fixed | 0:2.7.5-80.el7_6 | RHSA-2019:1587 |
| Red Hat Enterprise Linux 7 | python-tools | Fixed | 0:2.7.5-80.el7_6 | RHSA-2019:1587 |
| Red Hat Enterprise Linux 7 | python2-ovirt-node-ng-nodectl | Fixed | 0:4.3.5-0.20190717.0.el7ev | RHSA-2019:2437 |
| Red Hat Enterprise Linux 7 | python3 | Not affected | ||
| Red Hat Enterprise Linux 7 | python3-debug | Not affected | ||
| Red Hat Enterprise Linux 7 | python3-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | python3-idle | Not affected | ||
| Red Hat Enterprise Linux 7 | python3-libs | Not affected | ||
| Red Hat Enterprise Linux 7 | python3-test | Not affected | ||
| Red Hat Enterprise Linux 7 | python3-tkinter | Not affected | ||
| Red Hat Enterprise Linux 7 | redhat-release-virtualization-host | Fixed | 0:4.3.5-2.el7ev | RHSA-2019:2437 |
| Red Hat Enterprise Linux 7 | redhat-virtualization-host | Fixed | 0:4.3.5-20190722.0.el7_7 | RHSA-2019:2437 |
| Red Hat Enterprise Linux 7 | redhat-virtualization-host-image-update | Fixed | 0:4.3.5-20190722.0.el7_7 | RHSA-2019:2437 |
| Red Hat Enterprise Linux 7 | redhat-virtualization-host-image-update-placeholder | Fixed | 0:4.3.5-2.el7ev | RHSA-2019:2437 |
| Red Hat Enterprise Linux 7 | tkinter | Fixed | 0:2.7.5-80.el7_6 | RHSA-2019:1587 |
| Red Hat Enterprise Linux 6 | python | Not affected | ||
| Red Hat Enterprise Linux 6 | python-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | python-libs | Not affected | ||
| Red Hat Enterprise Linux 6 | python-test | Not affected | ||
| Red Hat Enterprise Linux 6 | python-tools | Not affected | ||
| Red Hat Enterprise Linux 6 | tkinter | Not affected | ||
| Red Hat Enterprise Linux 5 | python | Not affected |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- python: affected: affects 2.7, 3.5, 3.6, 3.7, >= v3.8.0a4 and < v3.8.0b1
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2019:1587 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2019:1700 (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://python-security.readthedocs.io/vuln/urlsplit-nfkc-normalization2.html
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2019-10160
- https://github.com/python/cpython/commit/8d0ef0b5edeae52960c7ed05ae8a12388324f87e
- https://github.com/python/cpython/commit/f61599b050c621386a3fc6bc480359e2d3bb93de
- https://github.com/python/cpython/commit/250b62acc59921d399f0db47db3b462cd6037e09
- https://github.com/python/cpython/commit/fd1771dbdd28709716bd531580c40ae5ed814468
- https://security.netapp.com/advisory/ntap-20190617-0003/
- https://access.redhat.com/errata/RHSA-2019:1587
- https://lists.debian.org/debian-lts-announce/2019/06/msg00022.html
- https://access.redhat.com/errata/RHSA-2019:1700
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/44TS66GJMO5H3RLMVZEBGEFTB6O2LJJU/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2ORNTF62QPLMJXIQ7KTZQ2776LMIXEKL/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KRYFIMISZ47NTAU3XWZUOFB7CYL62KES/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HQEQLXLOCR3SNM3AA5RRYJFQ5AZBYJ4L/
- https://access.redhat.com/errata/RHSA-2019:2437
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.