CVE-2019-9947
Reported by mitre · Published March 23, 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 path component of a URL that lacks a ? character) followed by an HTTP header or a Redis command. This is similar to the CVE-2019-9740 query string issue. 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-tools | Amazon Linux | 3.7.3-1.amzn2.0.2 |
| alpine/python-3.12 | alpine | 3.8.0-alpha4, 3.7.4-rc1, 3.6.9-rc1, 3.5.8-rc1, 2.7.17-rc1 |
| alpine/python-3.15 | alpine | 3.8.0-alpha4, 3.7.4-rc1, 3.6.9-rc1, 3.5.8-rc1, 2.7.17-rc1 |
| python3.5 | Ubuntu:Pro:14.04:LTS | 3.5.2-2ubuntu0~16.04.4~14.04.1+esm1 |
| alpine/python-3.10 | alpine | 3.8.0-alpha4, 3.7.4-rc1, 3.6.9-rc1, 3.5.8-rc1, 2.7.17-rc1 |
| python2.7 | Ubuntu:18.04:LTS | 2.7.15-4ubuntu4~18.04.1 |
| debian/python-3.13 | debian | 3.8.0-alpha4, 3.7.4-rc1, 3.6.9-rc1, 3.5.8-rc1, 2.7.17-rc1 |
| debian/python-3.15 | debian | 3.8.0-alpha4, 3.7.4-rc1, 3.6.9-rc1, 3.5.8-rc1, 2.7.17-rc1 |
| 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 |
| python2.7 | Ubuntu:Pro:14.04:LTS | 2.7.6-8ubuntu0.6+esm2 |
| python3.6 | Ubuntu:18.04:LTS | 3.6.8-1~18.04.2 |
| python | DHI | 3.8.0-alpha4, 3.7.4-rc1, 3.6.9-rc1, 3.5.8-rc1, 2.7.17-rc1 |
1 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| amazon:2 | python3-tools | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| n/a | n/a | * |
| amazon:2 | python3-test | 0 |
| amazon:2 | python3-debug | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | python3-devel | 0 |
| amazon:2 | python3-libs | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | python3 | 0 |
| amazon:2 | python3-tkinter | 0 |
Timeline
- Mar 23, 2019 CVE Published
- May 6, 2020 PoC Published (2 in total, the first dated here)
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 6, 2026 Distribution Patch (12 in total, the first dated here)
- Mar 6, 2026 Security Advisory (22 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-9947
vulnetix vdb fixes CVE-2019-9947
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-9947/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- x_refsource_CONFIRM
- 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
- RHSA-2019:2030 vendor-advisoryx_refsource_REDHAT
- USN-4127-2 vendor-advisoryx_refsource_UBUNTU
- USN-4127-1 vendor-advisoryx_refsource_UBUNTU
- openSUSE-SU-2019:2389 vendor-advisoryx_refsource_SUSE
- openSUSE-SU-2019:2393 vendor-advisoryx_refsource_SUSE
- RHSA-2019:3335 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:3520 vendor-advisoryx_refsource_REDHAT
- RHSA-2019:3725 vendor-advisoryx_refsource_REDHAT
- openSUSE-SU-2020:0086 vendor-advisoryx_refsource_SUSE
- GLSA-202003-26 vendor-advisoryx_refsource_GENTOO
- [debian-lts-announce] 20200715 [SECURITY] [DLA 2280-1] python3.5 security update mailing-listx_refsource_MLIST
- [debian-lts-announce] 20200822 [SECURITY] [DLA 2337-1] python2.7 security update mailing-listx_refsource_MLIST
…and 2 more