Red Hat Security Advisory: rh-python38 security, bug fix, and enhancement update
🔗 CVE IDs covered (5)
📋 Description
CVE-2019-18874 — python-psutil: Double free because of refcount mishandling CVE-2019-20907 — python: infinite loop in the tarfile module via crafted TAR archive CVE-2020-14422 — python: DoS via inefficiency in IPv{4,6}Interface classes CVE-2020-26116 — python: CRLF injection via HTTP request method in httplib/http.client CVE-2020-26137 — python-urllib3: CRLF injection via HTTP request method
🎯 Affected products138
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
- rh-python38-python-0:3.8.6-1.el7.aarch64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- rh-python38-python-0:3.8.6-1.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- rh-python38-python-0:3.8.6-1.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
- rh-python38-python-0:3.8.6-1.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- rh-python38-python-0:3.8.6-1.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- rh-python38-python-0:3.8.6-1.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
- rh-python38-python-0:3.8.6-1.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- rh-python38-python-0:3.8.6-1.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- rh-python38-python-0:3.8.6-1.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
- rh-python38-python-0:3.8.6-1.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- rh-python38-python-0:3.8.6-1.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
- rh-python38-python-0:3.8.6-1.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- rh-python38-python-0:3.8.6-1.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
- rh-python38-python-0:3.8.6-1.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- rh-python38-python-0:3.8.6-1.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
- rh-python38-python-debug-0:3.8.6-1.el7.aarch64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- rh-python38-python-debug-0:3.8.6-1.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- rh-python38-python-debug-0:3.8.6-1.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
- rh-python38-python-debug-0:3.8.6-1.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- rh-python38-python-debug-0:3.8.6-1.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- rh-python38-python-debug-0:3.8.6-1.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
- rh-python38-python-debug-0:3.8.6-1.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- rh-python38-python-debug-0:3.8.6-1.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- rh-python38-python-debug-0:3.8.6-1.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6)
- rh-python38-python-debug-0:3.8.6-1.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- rh-python38-python-debug-0:3.8.6-1.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
- +108 more not shown
✅ Remediation
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: This flaw can be mitigated by not opening untrusted files with tarfile. Workaround: As a short term solution, if your application is using the IPv4Interface/IPv6Interface classes as keys of a dictionary, it is possible to patch the __hash__ method of those classes to not be constant. ``` IPv4Interface.__hash__ = lambda self: hash((self._ip, self._prefixlen, int(self.network.network_address))) IPv6Interface.__hash__ = lambda self: hash((self._ip, self._prefixlen, int(self.network.network_address))) ```
🔗 References (9)
- selfhttps://access.redhat.com/errata/RHSA-2020:4299
- externalhttps://access.redhat.com/security/updates/classification/#moderate
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1772014
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1854926
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1856481
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1883014
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1883632
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1885289
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2020/rhsa-2020_4299.json