PT-2019-5894 · Python+8 · Python+10

Published

2019-03-12

·

Updated

2024-07-12

·

CVE-2019-9740

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Python versions 2.x through 2.7.16 Python versions 3.x through 3.7.3
Description The issue is related to the urllib2 module in Python, which does not properly neutralize CRLF sequences. This allows for CRLF injection if an attacker controls a URL parameter, such as the first argument to urllib.request.urlopen with r in the query string after a ? character, followed by an HTTP header or a Redis command.
Recommendations For Python 2.x through 2.7.16, update to version 2.7.17 or later. For Python 3.x through 3.7.3, update to version 3.7.4 or later. As a temporary workaround, consider avoiding the use of the urllib.request.urlopen function with untrusted URL parameters until a patch is applied. Restrict access to the urllib module to minimize the risk of exploitation.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALSA-2019:3335
ALT-PU-2019-1770
ALT-PU-2019-2535
ALT-PU-2019-2944
ALT-PU-2019-3103
ALT-PU-2020-3318
BDU:2021-03607
CESA-2019_2030
CESA-2019_3335
CESA-2019_3520
CVE-2019-9740
DLA-1834-1
DLA-1835-1
DLA-1835-2
DLA-2280-1
DLA-2337-1
DLA-3610-1
MGASA-2019-0318
OPENSUSE-SU-2019:2131-1
OPENSUSE-SU-2019:2133-1
OPENSUSE-SU-2019_2131-1
OPENSUSE-SU-2019_2133-1
OPENSUSE-SU-2024:11204-1
OPENSUSE-SU-2024:11277-1
OPENSUSE-SU-2024:12944-1
OPENSUSE-SU-2024:14055-1
OPENSUSE-SU-2024:14128-1
PSF-2019-10
RHSA-2019:1260
RHSA-2019:2030
RHSA-2019:3335
RHSA-2019:3520
RHSA-2019:3725
RHSA-2019_2030
RHSA-2019_3335
RHSA-2019_3520
RHSA-2020:1268
RHSA-2020:1346
RHSA-2020:1462
RLSA-2019:3335
SUSE-FU-2022:0444-1
SUSE-FU-2022:0445-1
SUSE-SU-2019:2267-1
SUSE-SU-2019:2300-1
SUSE-SU-2019:2331-1
SUSE-SU-2019:2332-1
SUSE-SU-2019:2370-1
SUSE-SU-2019:2391-1
SUSE-SU-2019:2399-1
SUSE-SU-2020:3624-1
USN-4127-1
USN-4127-2
USN-6891-1

Affected Products

Alt Linux
Almalinux
Centos
Linuxmint
Python
Red Hat
Rocky Linux
Suse
Ubuntu
Urllib
Urllib2