RHSA-2020:4641MediumCVSS 9.8

Red Hat Security Advisory: python38:3.8 security, bug fix, and enhancement update

Published
November 4, 2020
Last Modified
November 6, 2026

🔗 CVE IDs covered (5)

📋 Description

CVE-2019-20477 — PyYAML: command execution through python/object/apply constructor in FullLoader CVE-2019-20907 — python: infinite loop in the tarfile module via crafted TAR archive CVE-2020-1747 — PyYAML: arbitrary command execution through python/object/new when FullLoader is used CVE-2020-8492 — python: wrong backtracking in urllib.request.AbstractBasicAuthHandler allows for a ReDoS CVE-2020-14422 — python: DoS via inefficiency in IPv{4,6}Interface classes

🎯 Affected products200

  • Red Hat Enterprise Linux AppStream (v. 8)
  • Cython-0:0.29.14-4.module+el8.2.0+5234+f98739b6.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • Cython-debugsource-0:0.29.14-4.module+el8.2.0+5234+f98739b6.aarch64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • Cython-debugsource-0:0.29.14-4.module+el8.2.0+5234+f98739b6.ppc64le (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • Cython-debugsource-0:0.29.14-4.module+el8.2.0+5234+f98739b6.s390x (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • Cython-debugsource-0:0.29.14-4.module+el8.2.0+5234+f98739b6.x86_64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • PyYAML-0:5.3.1-1.module+el8.3.0+7187+a27ec44b.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • PyYAML-debugsource-0:5.3.1-1.module+el8.3.0+7187+a27ec44b.aarch64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • PyYAML-debugsource-0:5.3.1-1.module+el8.3.0+7187+a27ec44b.ppc64le (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • PyYAML-debugsource-0:5.3.1-1.module+el8.3.0+7187+a27ec44b.s390x (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • PyYAML-debugsource-0:5.3.1-1.module+el8.3.0+7187+a27ec44b.x86_64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • babel-0:2.7.0-10.module+el8.2.0+5234+f98739b6.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • mod_wsgi-0:4.6.8-3.module+el8.2.0+5234+f98739b6.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • numpy-0:1.17.3-5.module+el8.3.0+7187+a27ec44b.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • numpy-debugsource-0:1.17.3-5.module+el8.3.0+7187+a27ec44b.aarch64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • numpy-debugsource-0:1.17.3-5.module+el8.3.0+7187+a27ec44b.ppc64le (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • numpy-debugsource-0:1.17.3-5.module+el8.3.0+7187+a27ec44b.s390x (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • numpy-debugsource-0:1.17.3-5.module+el8.3.0+7187+a27ec44b.x86_64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-PyMySQL-0:0.9.3-3.module+el8.2.0+5234+f98739b6.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-asn1crypto-0:1.2.0-3.module+el8.2.0+5234+f98739b6.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-cffi-0:1.13.2-3.module+el8.2.0+5234+f98739b6.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-cffi-debugsource-0:1.13.2-3.module+el8.2.0+5234+f98739b6.aarch64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-cffi-debugsource-0:1.13.2-3.module+el8.2.0+5234+f98739b6.ppc64le (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-cffi-debugsource-0:1.13.2-3.module+el8.2.0+5234+f98739b6.s390x (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-cffi-debugsource-0:1.13.2-3.module+el8.2.0+5234+f98739b6.x86_64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-chardet-0:3.0.4-19.module+el8.2.0+5234+f98739b6.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-cryptography-0:2.8-3.module+el8.2.0+5234+f98739b6.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-cryptography-debugsource-0:2.8-3.module+el8.2.0+5234+f98739b6.aarch64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-cryptography-debugsource-0:2.8-3.module+el8.2.0+5234+f98739b6.ppc64le (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-cryptography-debugsource-0:2.8-3.module+el8.2.0+5234+f98739b6.s390x (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • +170 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: Use `yaml.safe_load` or the SafeLoader loader when you parse untrusted input. 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 (11)