An issue was discovered in urllib2 in Python 2.x through 2.7.16 and urllib in Python 3.x…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 35 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python:python:*:*:*:*:*:*:*:* | 2.0 to before 2.7.17; 3.5.0 to before 3.5.8; 3.6.0 to before 3.6.9; 3.7.0 to before 3.7.4 | Vulnerable | python-pillow |
- cpe:2.3:a:python:python:*:*:*:*:*:*:*:* Versions 2.0 to before 2.7.17; 3.5.0 to before 3.5.8; 3.6.0 to before 3.6.9; 3.7.0 to before 3.7.4 Vulnerable ·python-pillow
Remediation
Red Hat 8 advisories
- RHSA-2020:1462 Released 2020-04-14 · Red Hat rating Moderatepython security update
- Red Hat Enterprise Linux ComputeNode EUS (v. 7.6) python-2.7.5-83.el7_6, python-devel-2.7.5-83.el7_6, python-libs-2.7.5-83.el7_6
- Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.6) python-debug-2.7.5-83.el7_6, python-test-2.7.5-83.el7_6, python-tools-2.7.5-83.el7_6 +1
- Red Hat Enterprise Linux Server EUS (v. 7.6) python-2.7.5-83.el7_6, python-devel-2.7.5-83.el7_6, python-libs-2.7.5-83.el7_6 +1
- Red Hat Enterprise Linux Server Optional EUS (v. 7.6) python-debug-2.7.5-83.el7_6, python-test-2.7.5-83.el7_6, python-tools-2.7.5-83.el7_6 +1
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) python-2.7.5-83.el7_6, python-devel-2.7.5-83.el7_6, python-libs-2.7.5-83.el7_6
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) python-debug-2.7.5-83.el7_6, python-test-2.7.5-83.el7_6, python-tools-2.7.5-83.el7_6 +1
- RHSA-2020:1346 Released 2020-04-07 · Red Hat rating Moderatepython security update
- Red Hat Enterprise Linux Server AUS (v. 7.4) python-2.7.5-63.el7_4, python-devel-2.7.5-63.el7_4, python-libs-2.7.5-63.el7_4
- Red Hat Enterprise Linux Server E4S (v. 7.4) python-2.7.5-63.el7_4, python-devel-2.7.5-63.el7_4, python-libs-2.7.5-63.el7_4
- Red Hat Enterprise Linux Server Optional AUS (v. 7.4) python-debug-2.7.5-63.el7_4, python-test-2.7.5-63.el7_4, python-tools-2.7.5-63.el7_4 +1
- Red Hat Enterprise Linux Server Optional E4S (v. 7.4) python-debug-2.7.5-63.el7_4, python-test-2.7.5-63.el7_4, python-tools-2.7.5-63.el7_4 +1
- Red Hat Enterprise Linux Server Optional TUS (v. 7.4) python-debug-2.7.5-63.el7_4, python-test-2.7.5-63.el7_4, python-tools-2.7.5-63.el7_4 +1
- Red Hat Enterprise Linux Server TUS (v. 7.4) python-2.7.5-63.el7_4, python-devel-2.7.5-63.el7_4, python-libs-2.7.5-63.el7_4
- RHSA-2020:1268 Released 2020-04-01 · Red Hat rating Moderatepython security update
- Red Hat Enterprise Linux ComputeNode EUS (v. 7.5) python-2.7.5-74.el7_5, python-devel-2.7.5-74.el7_5, python-libs-2.7.5-74.el7_5
- Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.5) python-debug-2.7.5-74.el7_5, python-test-2.7.5-74.el7_5, python-tools-2.7.5-74.el7_5 +1
- Red Hat Enterprise Linux Server EUS (v. 7.5) python-2.7.5-74.el7_5, python-devel-2.7.5-74.el7_5, python-libs-2.7.5-74.el7_5 +1
- Red Hat Enterprise Linux Server Optional EUS (v. 7.5) python-debug-2.7.5-74.el7_5, python-test-2.7.5-74.el7_5, python-tools-2.7.5-74.el7_5 +1
Show 5 more Red Hat advisories
- RHSA-2019:3725 Released 2019-11-06 · Red Hat rating Moderaterh-python36-python security, bug fix, and enhancement update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-python36-python-3.6.9-2.el6, rh-python36-python-debug-3.6.9-2.el6, rh-python36-python-devel-3.6.9-2.el6 +4
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-python36-python-3.6.9-2.el7, rh-python36-python-debug-3.6.9-2.el7, rh-python36-python-devel-3.6.9-2.el7 +4
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-python36-python-3.6.9-2.el7, rh-python36-python-debug-3.6.9-2.el7, rh-python36-python-devel-3.6.9-2.el7 +4
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-python36-python-3.6.9-2.el7, rh-python36-python-debug-3.6.9-2.el7, rh-python36-python-devel-3.6.9-2.el7 +4
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) rh-python36-python-3.6.9-2.el7, rh-python36-python-debug-3.6.9-2.el7, rh-python36-python-devel-3.6.9-2.el7 +4
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-python36-python-3.6.9-2.el6, rh-python36-python-debug-3.6.9-2.el6, rh-python36-python-devel-3.6.9-2.el6 +4
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-python36-python-3.6.9-2.el7, rh-python36-python-debug-3.6.9-2.el7, rh-python36-python-devel-3.6.9-2.el7 +4
- RHSA-2019:3335 Released 2019-11-05 · Red Hat rating Moderatepython27:2.7 security and bug fix update
- Red Hat Enterprise Linux AppStream (v. 8) Cython-0.28.1-7.module+el8.1.0+3111+de3f2d8e.src::python27:2.7, PyYAML-3.12-16.module+el8.1.0+3111+de3f2d8e.src::python27:2.7, babel-2.5.1-9.module+el8.1.0+3111+de3f2d8e.noarch::python27:2.7 +47
- RHSA-2019:3520 Released 2019-11-05 · Red Hat rating Moderatepython3 security and bug fix update
- Red Hat Enterprise Linux AppStream (v. 8) platform-python-3.6.8-15.1.el8, platform-python-debug-3.6.8-15.1.el8, platform-python-devel-3.6.8-15.1.el8 +3
- Red Hat Enterprise Linux BaseOS (v. 8) platform-python-3.6.8-15.1.el8, python3-3.6.8-15.1.el8, python3-libs-3.6.8-15.1.el8 +1
- RHSA-2019:2030 Released 2019-08-06 · Red Hat rating Moderatepython security and bug fix update
- Red Hat Enterprise Linux Client (v. 7) python-2.7.5-86.el7, python-libs-2.7.5-86.el7
- Red Hat Enterprise Linux Client Optional (v. 7) python-debug-2.7.5-86.el7, python-devel-2.7.5-86.el7, python-test-2.7.5-86.el7 +2
- Red Hat Enterprise Linux ComputeNode (v. 7) python-2.7.5-86.el7, python-devel-2.7.5-86.el7, python-libs-2.7.5-86.el7
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) python-debug-2.7.5-86.el7, python-test-2.7.5-86.el7, python-tools-2.7.5-86.el7 +1
- Red Hat Enterprise Linux Server (v. 7) python-2.7.5-86.el7, python-devel-2.7.5-86.el7, python-libs-2.7.5-86.el7 +1
- Red Hat Enterprise Linux Server Optional (v. 7) python-debug-2.7.5-86.el7, python-test-2.7.5-86.el7, python-tools-2.7.5-86.el7 +1
- Red Hat Enterprise Linux Workstation (v. 7) python-2.7.5-86.el7, python-devel-2.7.5-86.el7, python-libs-2.7.5-86.el7
- Red Hat Enterprise Linux Workstation Optional (v. 7) python-debug-2.7.5-86.el7, python-test-2.7.5-86.el7, python-tools-2.7.5-86.el7 +1
- RHSA-2019:1260 Released 2019-05-22 · Red Hat rating Importantpython27-python and python27-python-jinja2 security and bug fix update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) python27-python-2.7.16-4.el6, python27-python-debug-2.7.16-4.el6, python27-python-devel-2.7.16-4.el6 +5
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) python27-python-2.7.16-4.el7, python27-python-debug-2.7.16-4.el7, python27-python-devel-2.7.16-4.el7 +5
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) python27-python-2.7.16-4.el7, python27-python-debug-2.7.16-4.el7, python27-python-devel-2.7.16-4.el7 +5
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) python27-python-2.7.16-4.el7, python27-python-debug-2.7.16-4.el7, python27-python-devel-2.7.16-4.el7 +5
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) python27-python-2.7.16-4.el7, python27-python-debug-2.7.16-4.el7, python27-python-devel-2.7.16-4.el7 +5
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) python27-python-2.7.16-4.el6, python27-python-debug-2.7.16-4.el6, python27-python-devel-2.7.16-4.el6 +5
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) python27-python-2.7.16-4.el7, python27-python-debug-2.7.16-4.el7, python27-python-devel-2.7.16-4.el7 +5
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
| Red Hat Ansible Tower 3.4 for RHEL 7 Server | Fixed | — |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2019:3335, RHSA-2019:3520 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2019:3520 |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2019:2030 |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2019:2030 |
| Red Hat Enterprise Linux ComputeNode (v. 7) | Fixed | RHSA-2019:2030 |
| Red Hat Enterprise Linux ComputeNode EUS (v. 7.5) | Fixed | RHSA-2020:1268 |
| Red Hat Enterprise Linux ComputeNode EUS (v. 7.6) | Fixed | RHSA-2020:1462 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2019:2030 |
| Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.5) | Fixed | RHSA-2020:1268 |
| Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.6) | Fixed | RHSA-2020:1462 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2019:2030 |
| Red Hat Enterprise Linux Server AUS (v. 7.4) | Fixed | RHSA-2020:1346 |
| Red Hat Enterprise Linux Server E4S (v. 7.4) | Fixed | RHSA-2020:1346 |
| Red Hat Enterprise Linux Server EUS (v. 7.5) | Fixed | RHSA-2020:1268 |
| Red Hat Enterprise Linux Server EUS (v. 7.6) | Fixed | RHSA-2020:1462 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2019:2030 |
| Red Hat Enterprise Linux Server Optional AUS (v. 7.4) | Fixed | RHSA-2020:1346 |
| Red Hat Enterprise Linux Server Optional E4S (v. 7.4) | Fixed | RHSA-2020:1346 |
| Red Hat Enterprise Linux Server Optional EUS (v. 7.5) | Fixed | RHSA-2020:1268 |
| Red Hat Enterprise Linux Server Optional EUS (v. 7.6) | Fixed | RHSA-2020:1462 |
| Red Hat Enterprise Linux Server Optional TUS (v. 7.4) | Fixed | RHSA-2020:1346 |
| Red Hat Enterprise Linux Server TUS (v. 7.4) | Fixed | RHSA-2020:1346 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2019:2030 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2019:2030 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) | Fixed | RHSA-2020:1462 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) | Fixed | RHSA-2020:1462 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2019:1260, RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2019:1260, RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) | Fixed | RHSA-2019:1260 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) | Fixed | RHSA-2019:1260, RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) | Fixed | RHSA-2019:1260, RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7) | Fixed | RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2019:1260, RHSA-2019:3725 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2019:1260, RHSA-2019:3725 |
Not affected: 2 products
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Timeline
- 2026-10-02 Threatist record created from CVE-2019-9740
- 2026-10-03 Alias added: GHSA-p3j2-v862-h3v3
- 2026-10-07 CVSS score added · CISA ADP
- 2026-10-07 Weakness changed · CISA ADP
- 2026-10-07 CISA SSVC decision points changed
References
Exploit 1
Advisory 27
- FEDORA-2019-1ffd6b6064
- RHSA-2019:1260
- FEDORA-2019-ec26883852
- [debian-lts-announce] 20190625 [SECURITY] [DLA 1834-1] python2.7 security update
- [debian-lts-announce] 20190625 [SECURITY] [DLA 1835-1] python3.4 security update
- [debian-lts-announce] 20190625 [SECURITY] [DLA 1835-2] python3.4 regression update
- FEDORA-2019-7723d4774a
- FEDORA-2019-7df59302e0
- RHSA-2019:2030
- USN-4127-2
- openSUSE-SU-2019:2131
- openSUSE-SU-2019:2133
- USN-4127-1
- 20191021 [slackware-security] python (SSA:2019-293-01)
- RHSA-2019:3335
- RHSA-2019:3520
- RHSA-2019:3725
- FEDORA-2019-b06ec6159b
- FEDORA-2019-d202cda4f8
- FEDORA-2019-57462fa10d
- GLSA-202003-26
- [debian-lts-announce] 20200715 [SECURITY] [DLA 2280-1] python3.5 security update
- [debian-lts-announce] 20200822 [SECURITY] [DLA 2337-1] python2.7 security update
- http://packetstormsecurity.com/files/154927/Slackware-Security-Advisory-python-Updates.html
- [oss-security] 20210204 [CVE-2020-15693, CVE-2020-15694] Nim - stdlib Httpclient - Header Crlf Injection & Server Response Validation
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20190619-0005/
More python-pillow Python vulnerabilities
- TI-2016-01993 The DES and Triple DES ciphers, as used in the TLS, SSH, and IPSec protocols and other… CVSS 3.1HIGH 7.5
- TI-2022-24108 An XML External Entity (XXE) issue was discovered in Python through 3.9.1. CVSS 3.1CRITICAL 9.8
- TI-2022-17508 The Keccak XKCP SHA-3 reference implementation before fdc6fef has an integer overflow and… CVSS 3.1CRITICAL 9.8
- TI-2021-02254 Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c… CVSS 3.1CRITICAL 9.8
- TI-2007-04413 Directory traversal vulnerability in the (1) extract and (2) extractall functions in the… CVSS 3.1CRITICAL 9.8
- TI-2014-00217 OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly… CVSS 3.1HIGH 7.4
Sources
- CVE-2019-9740 · CVE Program
- CVE-2019-9740 · NVD
- FIRST EPSS
- GHSA-p3j2-v862-h3v3 · GitHub Advisory Database · CC BY 4.0
- CVE-2019-9740 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences