Python up to 2.7.16/3.7.2 urllib/urllib2 urllib.request.urlopen HTTP Header crlf injection
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.6 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as critical, has been found in Python up to 2.7.16/3.7.2. Affected by this vulnerability is an unknown functionality in the library urllib.request.urlopen of the component urllib/urllib2. The manipulation as part of HTTP Header leads to crlf injection. This vulnerability is referenced as CVE-2019-9740. Remote exploitation of the attack is possible. No exploit is available.
Details
A vulnerability was found in Python up to 2.7.16/3.7.2 (Programming Language Software). It has been rated as critical. This issue affects an unknown functionality in the library urllib.request.urlopen of the component urllib/urllib2. The manipulation as part of a HTTP Header leads to a crlf injection vulnerability. Using CWE to declare the problem leads to CWE-93. The product uses CRLF (carriage return line feeds) as a special element, e.g. to separate lines or records, but it does not neutralize or incorrectly neutralizes CRLF sequences from inputs. Impacted is confidentiality, integrity, and availability. The summary by CVE is:
An issue was discovered in urllib2 in Python 2.x through 2.7.16 and urllib in Python 3.x through 3.7.2. CRLF injection is possible if the attacker controls a url parameter, as demonstrated by the first argument to urllib.request.urlopen with \r\n followed by an HTTP header or a Redis command.
The bug was discovered 03/13/2019. The weakness was published 03/13/2019 (Website). It is possible to read the advisory at securityfocus.com. The identification of this vulnerability is CVE-2019-9740 since 03/12/2019. The attack may be initiated remotely. No form of authentication is needed for a successful exploitation. It demands that the victim is doing some kind of user interaction. Technical details of the vulnerability are known, but there is no available exploit.
The vulnerability scanner Nessus provides a plugin with the ID 236633 (Alibaba Cloud Linux 3 : 0112: python27:2.7 (ALINUX3-SA-2022:0112)), which helps to determine the existence of the flaw in a target environment. The commercial vulnerability scanner Qualys is able to test this issue with plugin 237250 (Red Hat Update for python27-python and python27-python-jinja2 (RHSA-2019:1260)).
There is no information about possible countermeasures known. It may be suggested to replace the affected object with an alternative product.
The vulnerability is also documented in the databases at Tenable (236633) and SecurityFocus (BID 105396†). Similar entries are available at VDB-109585, VDB-113041, VDB-119652 and VDB-119653. Be aware that VulDB is the high quality source for vulnerability data.
Product
Type
Name
Version
- 2.7.0
- 2.7.1
- 2.7.2
- 2.7.3
- 2.7.4
- 2.7.5
- 2.7.6
- 2.7.7
- 2.7.8
- 2.7.9
- 2.7.10
- 2.7.11
- 2.7.12
- 2.7.13
- 2.7.14
- 2.7.15
- 2.7.16
- 3.7.0
- 3.7.1
- 3.7.2
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.6VulDB Meta Temp Score: 6.6
VulDB Base Score: 7.1
VulDB Temp Score: 7.1
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 6.1
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Crlf injectionCWE: CWE-93 / CWE-74 / CWE-707
CAPEC: 🔍
ATT&CK: 🔍
Physical: No
Local: No
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 236633
Nessus Name: Alibaba Cloud Linux 3 : 0112: python27:2.7 (ALINUX3-SA-2022:0112)
Qualys ID: 🔍
Qualys Name: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: no mitigation knownStatus: 🔍
0-Day Time: 🔍
Timeline
09/22/2018 🔍03/12/2019 🔍
03/13/2019 🔍
03/13/2019 🔍
03/13/2019 🔍
05/19/2025 🔍
Sources
Advisory: RHSA-2019:1260⛔Status: Confirmed
Confirmation: 🔍
CVE: CVE-2019-9740 (🔍)
GCVE (CVE): GCVE-0-2019-9740
GCVE (VulDB): GCVE-100-131615
SecurityFocus: 105396 - Python CVE-2018-14647 Remote Denial of Service Vulnerability
See also: 🔍
Entry
Created: 03/13/2019 07:07Updated: 05/19/2025 19:40
Changes: 03/13/2019 07:07 (60), 05/15/2020 17:51 (5), 07/31/2023 17:37 (3), 05/19/2025 19:40 (16)
Complete: 🔍
Cache ID: 216::103
Be aware that VulDB is the high quality source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.