CVE-2019-9740
Reported by mitre · Published March 13, 2019
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.6.11rc1, v3.6.12, v3.6.9, v3.6.9rc1; v3.7.4, v3.7.4rc1, v3.7.4rc2, v3.7.5, v3.7.5rc1, v3.7.6, v3.7.6rc1, v3.7.7, v3.7.7rc1, v3.7.8, v3.7.8rc1, v3.7.9.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-devel | Amazon Linux | 3.7.3-1.amzn2.0.2 |
| debian/python-3.11 | debian | 3.8.0-alpha4, 3.7.4-rc1, 3.6.9-rc1, 3.5.8-rc1, 2.7.17-rc1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | python3-devel | 0 |
| n/a | n/a | * |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | python3-debug | 0 |
| amazon:2 | python3-libs | 0 |
| amazon:2 | python3-tools | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| amazon:2 | python3-test | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | python3 | 0 |
| amazon:2 | python3-tkinter | 0 |
Timeline
- Mar 12, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Sep 8, 2025 CVE Updated
- Dec 16, 2025 PoC Published
- Mar 6, 2026 Distribution Patch (11 in total, the first dated here)
- Mar 6, 2026 Security Advisory (20 in total, the first dated here)
- Sep 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-9740
vulnetix vdb fixes CVE-2019-9740
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-9740/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 107466 vdb-entryx_refsource_BID
- FEDORA-2019-1ffd6b6064 vendor-advisoryx_refsource_FEDORA
- RHSA-2019:1260 vendor-advisoryx_refsource_REDHAT
- FEDORA-2019-ec26883852 vendor-advisoryx_refsource_FEDORA
- [debian-lts-announce] 20190625 [SECURITY] [DLA 1834-1] python2.7 security update mailing-listx_refsource_MLIST
- [debian-lts-announce] 20190625 [SECURITY] [DLA 1835-1] python3.4 security update mailing-listx_refsource_MLIST
- [debian-lts-announce] 20190625 [SECURITY] [DLA 1835-2] python3.4 regression update mailing-listx_refsource_MLIST
- FEDORA-2019-7723d4774a vendor-advisoryx_refsource_FEDORA
- FEDORA-2019-7df59302e0 vendor-advisoryx_refsource_FEDORA
- RHSA-2019:2030 vendor-advisoryx_refsource_REDHAT
- USN-4127-2 vendor-advisoryx_refsource_UBUNTU
- openSUSE-SU-2019:2131 vendor-advisoryx_refsource_SUSE
- openSUSE-SU-2019:2133 vendor-advisoryx_refsource_SUSE
- USN-4127-1 vendor-advisoryx_refsource_UBUNTU
- 20191021 [slackware-security] python (SSA:2019-293-01) mailing-listx_refsource_BUGTRAQ
- RHSA-2019:3335 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:3520 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:3725 vendor-advisoryx_refsource_REDHAT
- FEDORA-2019-b06ec6159b vendor-advisoryx_refsource_FEDORA
- FEDORA-2019-d202cda4f8 vendor-advisoryx_refsource_FEDORA
…and 10 more