Skip to content
OpenAdvisories
Medium · 5.4 CVE-2019-18348 EUVD-2019-8136GHSA-v3f8-6665-x7rx

An issue was discovered in urllib2 in Python 2.x through 2.7.17 and urllib in Python 3.x through 3.8.0. CRLF injection is possible if the a…

Published Oct 23, 2019 · Updated Oct 14, 2026 · Assigned by mitre

Description

An issue was discovered in urllib2 in Python 2.x through 2.7.17 and urllib in Python 3.x through 3.8.0. CRLF injection is possible if the attacker controls a url parameter, as demonstrated by the first argument to urllib.request.urlopen with \r\n (specifically in the host component of a URL) followed by an HTTP header. This is similar to the CVE-2019-9740 query string issue and the CVE-2019-9947 path string issue. (This is not exploitable when glibc has CVE-2016-10739 fixed.). This is fixed in: v2.7.18, v2.7.18rc1; v3.5.10, v3.5.10rc1; v3.6.11, v3.6.11rc1, v3.6.12; v3.7.8, v3.7.8rc1, v3.7.9; v3.8.3, v3.8.3rc1, v3.8.4, v3.8.4rc1, v3.8.5, v3.8.6, v3.8.6rc1.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 11 python2.7 2.7.18~rc1-1 —
Debian 9 python3.5 3.5.3-1+deb9u2 DLA-2280-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS python3.10 3.10.12-1~22.04.4 USN-6891-1
Ubuntu 20.04 LTS python3.8 3.8.2-1ubuntu1.1 USN-6891-1, USN-4333-2
Ubuntu 18.04 LTS python2.7 2.7.17-1~18.04ubuntu1 USN-4333-1
Ubuntu 18.04 LTS python3.6 3.6.9-1~18.04ubuntu1 USN-4333-1
Ubuntu 16.04 LTS python2.7 2.7.12-1ubuntu0~16.04.11 USN-4333-1
Ubuntu 16.04 LTS python3.5 3.5.2-2ubuntu0~16.04.10 USN-4333-1
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS python3.11 3.11.0~rc1-1~22.04.1~esm1 USN-6891-1
Ubuntu Pro 20.04 LTS python3.9 3.9.5-3ubuntu0~20.04.1+esm2 USN-6891-1
Ubuntu Pro 18.04 LTS python3.6 3.6.9-1~18.04ubuntu1.13+esm2 USN-6891-1
Ubuntu Pro 18.04 LTS python3.7 3.7.5-2ubuntu1~18.04.2+esm3 USN-6891-1
Ubuntu Pro 18.04 LTS python3.8 3.8.0-3ubuntu1~18.04.2+esm2 USN-6891-1
Ubuntu Pro 16.04 LTS python3.5 3.5.2-2ubuntu0~16.04.13+esm13 USN-6891-1
Ubuntu Pro 14.04 LTS python2.7 2.7.6-8ubuntu0.6+esm5 USN-4333-1
Ubuntu Pro 14.04 LTS python3.4 3.4.3-1ubuntu1~14.04.7+esm6 USN-4333-1
Ubuntu Pro 14.04 LTS python3.5 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 USN-6891-1
ReleasePackageFixed inAdvisory
RHEL 3 python27-python +6 2.7.18-2.el7 RHSA-2020:4273
RHEL 3 python27-python-pip 8.1.2-6.el7 RHSA-2020:4273
RHEL 3 python27-python-virtualenv 13.1.0-4.el7 RHSA-2020:4273
RHEL 3 rh-python36-python +6 3.6.12-1.el6 RHSA-2020:4285
RHEL 3 rh-python36-python-pip 9.0.1-5.el6 RHSA-2020:4285
RHEL 3 rh-python36-python-virtualenv 15.1.0-3.el6 RHSA-2020:4285
ReleasePackageFixed inAdvisory
SLES 15 SP4 python3 +1 3.6.15-150300.10.37.2 SUSE-SU-2022:4281-1
SLES 15 SP3 python3 +1 3.6.15-150300.10.37.2 SUSE-SU-2022:4281-1
SLES 15 SP2 python3 +1 3.6.12-3.67.2 SUSE-SU-2020:3930-1
SLES 15 SP1 python +1 2.7.17-7.38.1 SUSE-SU-2020:1339-1
SLES 15 SP1 python3 +1 3.6.12-3.67.2 SUSE-SU-2020:3930-1
SLES 15 python3 +1 3.6.12-3.67.2 SUSE-SU-2020:3930-1
Show 23 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 python +2 2.7.17-28.42.1 SUSE-SU-2021:0794-1, SUSE-SU-2020:1524-1
SLES 12 SP5 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SLES 12 SP5 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SLES 12 SP5 python36 +1 3.6.10-4.9.1 SUSE-SU-2020:3865-1, SUSE-SU-2020:0750-1
SLES 12 SP5 python36-core 3.6.12-4.25.1 SUSE-SU-2020:3865-1
SLES 12 SP5 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SLES 12 SP4 python +2 2.7.17-28.42.1 SUSE-SU-2021:0794-1, SUSE-SU-2020:1524-1
SLES 12 SP4 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SLES 12 SP4 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SLES 12 SP4 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SLES 12 SP3 python +2 2.7.17-28.42.1 SUSE-SU-2021:0794-1, SUSE-SU-2020:1524-1
SLES 12 SP3 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SLES 12 SP3 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SLES 12 SP3 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SLES 12 SP2 python +2 2.7.17-28.42.1 SUSE-SU-2021:0794-1, SUSE-SU-2020:1524-1
SLES 12 SP2 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SLES 12 SP2 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SLES 12 SP2 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SLES 12 SP1 python +2 2.7.17-28.42.1 SUSE-SU-2020:1524-1
SLES 12 SP1 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SLES 12 SP1 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SLES 12 SP1 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SLES 12 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SLES 2 python +1 2.7.17-7.38.1 SUSE-SU-2020:1339-1
SLES for SAP 15 python3 +1 3.6.12-3.67.2 SUSE-SU-2020:3930-1
SLES for SAP 12 SP5 python +2 2.7.17-28.42.1 SUSE-SU-2021:0794-1, SUSE-SU-2020:1524-1
SLES for SAP 12 SP5 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SLES for SAP 12 SP5 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SLES for SAP 12 SP5 python36 +1 3.6.10-4.9.1 SUSE-SU-2020:3865-1, SUSE-SU-2020:0750-1
SLES for SAP 12 SP5 python36-core 3.6.12-4.25.1 SUSE-SU-2020:3865-1
SLES for SAP 12 SP5 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SLES for SAP 12 SP4 python +2 2.7.17-28.42.1 SUSE-SU-2021:0794-1, SUSE-SU-2020:1524-1
SLES for SAP 12 SP4 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SLES for SAP 12 SP4 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SLES for SAP 12 SP4 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SLES for SAP 12 SP3 python +2 2.7.17-28.42.1 SUSE-SU-2021:0794-1, SUSE-SU-2020:1524-1
SLES for SAP 12 SP3 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SLES for SAP 12 SP3 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SLES for SAP 12 SP3 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SLES for SAP 12 SP2 python +2 2.7.17-28.42.1 SUSE-SU-2021:0794-1, SUSE-SU-2020:1524-1
SLES for SAP 12 SP2 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SLES for SAP 12 SP2 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SLES for SAP 12 SP2 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SLES for SAP 12 SP1 python +2 2.7.17-28.42.1 SUSE-SU-2020:1524-1
SLES for SAP 12 SP1 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SLES for SAP 12 SP1 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SLES for SAP 12 SP1 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SLE Micro 5.3 python3 +1 3.6.15-150300.10.37.2 SUSE-SU-2022:4281-1
SLE Micro 5.2 python3 +1 3.6.15-150300.10.37.2 SUSE-SU-2022:4281-1
SLE HPC 15 python3 +1 3.6.12-3.67.2 SUSE-SU-2020:3930-1
SUSE OpenStack Cloud Crowbar 9 python +2 2.7.18-28.67.1 SUSE-SU-2021:0794-1
SUSE OpenStack Cloud Crowbar 8 python +2 2.7.17-28.42.1 SUSE-SU-2021:0794-1, SUSE-SU-2020:1524-1
SUSE OpenStack Cloud Crowbar 8 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SUSE OpenStack Cloud Crowbar 8 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SUSE OpenStack Cloud Crowbar 8 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SUSE OpenStack Cloud 9 python +2 2.7.18-28.67.1 SUSE-SU-2021:0794-1
SUSE OpenStack Cloud 8 python +2 2.7.17-28.42.1 SUSE-SU-2021:0794-1, SUSE-SU-2020:1524-1
SUSE OpenStack Cloud 8 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SUSE OpenStack Cloud 8 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SUSE OpenStack Cloud 8 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SUSE OpenStack Cloud 7 python +2 2.7.17-28.42.1 SUSE-SU-2021:0794-1, SUSE-SU-2020:1524-1
SUSE OpenStack Cloud 7 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SUSE OpenStack Cloud 7 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SUSE OpenStack Cloud 7 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SUSE HPE Helion OpenStack 8 python +2 2.7.17-28.42.1 SUSE-SU-2021:0794-1, SUSE-SU-2020:1524-1
SUSE HPE Helion OpenStack 8 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SUSE HPE Helion OpenStack 8 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SUSE HPE Helion OpenStack 8 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
SUSE Enterprise Storage 5 python +2 2.7.17-28.42.1 SUSE-SU-2020:1524-1
SUSE Enterprise Storage 5 python-rpm-macros 20200207.5feb6c1-3.19.1 SUSE-SU-2020:1524-1
SUSE Enterprise Storage 5 python3 +1 3.4.10-25.45.1 SUSE-SU-2020:0854-1
SUSE Enterprise Storage 5 shared-python-startup 0.1-1.3.1 SUSE-SU-2020:1524-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python 2.7.18-8.1 openSUSE-SU-2024:11202-1
openSUSE Tumbleweed python36 3.6.15-1.1 openSUSE-SU-2024:11284-1
openSUSE Leap 15.4 python3 +1 3.6.15-150300.10.37.2 SUSE-SU-2022:4281-1
openSUSE Leap 15.4 python3-documentation 3.6.15-150300.10.37.1 SUSE-SU-2022:4281-1
openSUSE Leap 15.3 python3 +1 3.6.15-150300.10.37.2 SUSE-SU-2022:4281-1
openSUSE Leap 15.3 python3-documentation 3.6.15-150300.10.37.1 SUSE-SU-2022:4281-1
openSUSE Leap 15.2 python3 +2 3.6.12-lp152.4.14.1 openSUSE-SU-2020:2332-1
openSUSE Leap 15.1 python +2 2.7.17-lp151.10.17.1 openSUSE-SU-2020:0696-1
openSUSE Leap 15.1 python3 +2 3.6.12-lp151.6.32.1 openSUSE-SU-2020:2333-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.3 python3 +1 3.6.15-150300.10.37.2 SUSE-SU-2022:4281-1
openSUSE Leap Micro 5.2 python3 +1 3.6.15-150300.10.37.2 SUSE-SU-2022:4281-1
ReleasePackageFixed inAdvisory
Alpine v3.15 python2 2.7.18-r0 —
Alpine v3.14 python2 2.7.18-r0 —
Alpine v3.13 python2 2.7.18-r0 —
Alpine v3.12 python2 2.7.18-r0 —
Alpine v3.11 python2 +1 2.7.18-r0 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.10 python2 +1 2.7.18-r0 —
Alpine v3.9 python2 2.7.18-r0 —

Advisories 22

References