CVE-2019-9740CRLF Injection in Python

Severity
6.1MEDIUMNVD
OSV7.6OSV7.5OSV5.3
EPSS
9.9%
top 6.97%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMar 13
Latest updateJul 11

Description

An issue was discovered in urllib2 in Python 2.x through 2.7.16 and urllib in Python 3.x through 3.7.3. 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 query string after a ? character) followed by an HTTP header or a Redis command. This is fixed in: v2.7.17, v2.7.17rc1, v2.7.18, v2.7.18rc1; v3.5.10, v3.5.10rc1, v3.5.8, v3.5.8rc1, v3.5.8rc2, v3.5.9; v3.6.10, v3.6.10rc1, v3.6.11, v3

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NExploitability: 2.8 | Impact: 2.7

Affected Packages5 packages

NVDpython/python2.02.7.17+9
debiandebian/python2.7< python2.7 2.7.16-3 (bullseye)+1

🔴Vulnerability Details

9
OSV
python3.5, python3.6, python3.7, python3.8, python3.9, python3.10, python3.11, python3.12 vulnerabilities2024-07-11
GHSA
GHSA-v3f8-6665-x7rx: An issue was discovered in urllib2 in Python 22022-05-24
GHSA
GHSA-89ff-5r66-wr8j: An issue was discovered in urllib2 in Python 22022-05-13
GHSA
GHSA-p3j2-v862-h3v3: An issue was discovered in urllib2 in Python 22022-05-13
OSV
CVE-2019-18348: An issue was discovered in urllib2 in Python 22019-10-23

📋Vendor Advisories

11
Ubuntu
Python vulnerabilities2024-07-11
Red Hat
python-httplib2: CRLF injection via an attacker controlled unescaped part of uri for httplib2.Http.request function2020-05-20
Microsoft
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 first2019-10-08
Ubuntu
Python vulnerabilities2019-09-10
Ubuntu
Python vulnerabilities2019-09-09

💬Community

12
Bugzilla
CVE-2020-11078 python-httplib2: CRLF injection via an attacker controlled unescaped part of uri for httplib2.Http.request function2020-06-10
Bugzilla
CVE-2019-9740 python34: python: improper neutralization of CRLF sequences in urllib module [epel-all]2019-05-06
Bugzilla
CVE-2019-9740 python34: python: improper neutralization of CRLF sequences in urllib module [fedora-all]2019-05-06
Bugzilla
CVE-2019-9740 python35: python: improper neutralization of CRLF sequences in urllib module [fedora-all]2019-05-06
Bugzilla
CVE-2019-9740 python3: python: improper neutralization of CRLF sequences in urllib module [fedora-all]2019-05-06