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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 11 | python2.7 | 2.7.18~rc1-1 | — |
| Debian 9 | python3.5 | 3.5.3-1+deb9u2 | DLA-2280-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.10 | python2 +1 | 2.7.18-r0 | — |
| Alpine v3.9 | python2 | 2.7.18-r0 | — |
Advisories 22
- SSA-398330 SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5 Siemens ProductCERT · Oct 13, 2026
- RHSA-2020:4273 Red Hat Security Advisory: python27 security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Oct 9, 2026
- RHSA-2020:4285 Red Hat Security Advisory: rh-python36 security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Oct 9, 2026
- USN-6891-1 python3.5, python3.6, python3.7, python3.8, python3.9, python3.10, python3.11, python3.12 vulnerabilities Ubuntu Security Notices (USN) · Oct 8, 2026
- USN-4333-1 python2.7, python3.4, python3.5, python3.6, python3.7 vulnerabilities Ubuntu Security Notices (USN) · Oct 8, 2026
- USN-4333-2 python3.8 vulnerabilities Ubuntu Security Notices (USN) · Oct 8, 2026
- DLA-2280-1 python3.5 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2020:0696-1 Security update for python SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:2332-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:3865-1 Security update for python36 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:1524-1 Security update for python SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2022:4281-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:0750-1 Security update for python36 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:1339-1 Security update for python SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:2333-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:0854-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:0794-1 Security update for python SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2020:3930-1 Security update for python3 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11284-1 python36-3.6.15-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-2191 Python: Schwachstelle ermöglicht Manipulation von Dateien BSI CERT-Bund (WID) · Aug 21, 2025
- ICSA-23-348-10 Siemens SIMATIC S7-1500 CISA ICS & IT advisories · Aug 12, 2025
- openSUSE-SU-2024:11202-1 python-2.7.18-8.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025
References
- FEDORA-2019-b06ec6159b vendor-advisory
- FEDORA-2019-d202cda4f8 vendor-advisory
- FEDORA-2019-57462fa10d vendor-advisory
- USN-4333-1 vendor-advisory
- USN-4333-2 vendor-advisory
- openSUSE-SU-2020:0696 vendor-advisory
- FEDORA-2020-8bdd3fd7a4 vendor-advisory
- FEDORA-2020-ea5bdbcc90 vendor-advisory
- [debian-lts-announce] 20200715 [SECURITY] [DLA 2280-1] python3.5 security update mailing-list
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://bugzilla.redhat.com/show_bug.cgi?id=1727276
- https://bugs.python.org/issue30458#msg347282
- https://security.netapp.com/advisory/ntap-20191107-0004/