PT-2019-4685 · Python+9 · Python+11

Published

2019-03-23

·

Updated

2025-11-07

·

CVE-2019-9947

CVSS v3.1

6.1

Medium

VectorAV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
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 An issue in the urllib2 and urllib modules allows for CRLF injection if an attacker controls a url parameter. This can be demonstrated by the first argument to urllib.request.urlopen with r in the path component of a URL that lacks a ? character, followed by an HTTP header or a Redis command. The issue is similar to a previous query string problem.
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 restricting the use of the urllib.request.urlopen function with untrusted URLs until a patch is applied. Avoid using URLs with r in the path component in the affected urllib.request.urlopen function until the issue is resolved.

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-2535
ALT-PU-2019-2944
ALT-PU-2019-3103
ALT-PU-2020-3318
BDU:2020-01057
CESA-2019_2030
CESA-2019_3335
CESA-2019_3520
CVE-2019-9947
DLA-1834-1
DLA-1835-1
DLA-1835-2
DLA-2280-1
DLA-2337-1
MGASA-2019-0318
OPENSUSE-SU-2019:2389-1
OPENSUSE-SU-2019:2393-1
OPENSUSE-SU-2019_2389-1
OPENSUSE-SU-2019_2393-1
OPENSUSE-SU-2020:0086-1
OPENSUSE-SU-2020_0086-1
OPENSUSE-SU-2024:11202-1
OPENSUSE-SU-2024:11283-1
OPENSUSE-SU-2024:11284-1
OPENSUSE-SU-2024:11285-1
OPENSUSE-SU-2024:11286-1
OPENSUSE-SU-2024:12089-1
OPENSUSE-SU-2024:12910-1
OPENSUSE-SU-2024:14109-1
OPENSUSE-SU-2024:14434-1
OPENSUSE-SU-2025:15713-1
PSF-2019-11
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-RU-2020:0775-1
SUSE-SU-2019:1352-1
SUSE-SU-2019:1352-2
SUSE-SU-2019:14246-1
SUSE-SU-2019:2743-1
SUSE-SU-2019_1352-1
SUSE-SU-2019_1352-2
SUSE-SU-2019_14246-1
SUSE-SU-2020:0114-1
SUSE-SU-2020:0234-1
SUSE-SU-2020:0302-1
SUSE-SU-2020:2699-1
SUSE-SU-2025:20025-1
SUSE-SU-2025:20154-1
SUSE-SU-2025:20492-1
USN-4127-1
USN-4127-2
USN-6891-1

Affected Products

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