RHSA-2021:4162MediumCVSS 9.1

Red Hat Security Advisory: python38:3.8 and python38-devel:3.8 security update

Published
November 9, 2021
Last Modified
October 14, 2026

🔗 CVE IDs covered (11)

📋 Description

CVE-2019-18874 — python-psutil: Double free because of refcount mishandling CVE-2020-27619 — python: Unsafe use of eval() on data retrieved via HTTP in the test suite CVE-2020-28493 — python-jinja2: ReDoS vulnerability in the urlize filter CVE-2021-3426 — python: Information disclosure via pydoc CVE-2021-3572 — python-pip: Incorrect handling of unicode separators in git references CVE-2021-20095 — python-babel: Relative path traversal allows attacker to load arbitrary locale files and execute arbitrary code CVE-2021-23336 — python: Web cache poisoning via urllib.parse.parse_qsl and urllib.parse.parse_qs by using a semicolon in query parameters CVE-2021-28957 — python-lxml: Missing input sanitization for formaction HTML5 attributes may lead to XSS CVE-2021-29921 — python-ipaddress: Improper input validation of octal strings CVE-2021-33503 — python-urllib3: ReDoS in the parsing of authority part of URL CVE-2021-42771 — python-babel: Relative path traversal allows attacker to load arbitrary locale files and execute arbitrary code

🎯 Affected products200

  • Red Hat CodeReady Linux Builder (v. 8)
  • Red Hat Enterprise Linux AppStream (v. 8)
  • Cython-0:0.29.14-4.module+el8.4.0+8888+89bc7e79.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • Cython-debugsource-0:0.29.14-4.module+el8.4.0+8888+89bc7e79.aarch64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • Cython-debugsource-0:0.29.14-4.module+el8.4.0+8888+89bc7e79.ppc64le (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • Cython-debugsource-0:0.29.14-4.module+el8.4.0+8888+89bc7e79.s390x (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • Cython-debugsource-0:0.29.14-4.module+el8.4.0+8888+89bc7e79.x86_64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • PyYAML-0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • PyYAML-debugsource-0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.aarch64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • PyYAML-debugsource-0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.ppc64le (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • PyYAML-debugsource-0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.s390x (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • PyYAML-debugsource-0:5.4.1-1.module+el8.5.0+10721+14d8e0d5.x86_64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • babel-0:2.7.0-11.module+el8.5.0+11015+9c1c7c42.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • mod_wsgi-0:4.6.8-3.module+el8.4.0+8888+89bc7e79.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • numpy-0:1.17.3-6.module+el8.5.0+12205+a865257a.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • numpy-debugsource-0:1.17.3-6.module+el8.5.0+12205+a865257a.aarch64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • numpy-debugsource-0:1.17.3-6.module+el8.5.0+12205+a865257a.ppc64le (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • numpy-debugsource-0:1.17.3-6.module+el8.5.0+12205+a865257a.s390x (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • numpy-debugsource-0:1.17.3-6.module+el8.5.0+12205+a865257a.x86_64 (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • pytest-0:4.6.6-3.module+el8.4.0+8888+89bc7e79.src (python38-devel:3.8) as a component of Red Hat CodeReady Linux Builder (v. 8)
  • python-PyMySQL-0:0.10.1-1.module+el8.4.0+9692+8e86ab84.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-asn1crypto-0:1.2.0-3.module+el8.4.0+8888+89bc7e79.src (python38:3.8) as a component of Red Hat Enterprise Linux AppStream (v. 8)
  • python-atomicwrites-0:1.3.0-8.module+el8.4.0+8888+89bc7e79.src (python38-devel:3.8) as a component of Red Hat CodeReady Linux Builder (v. 8)
  • python-attrs-0:19.3.0-3.module+el8.4.0+8888+89bc7e79.src (python38-devel:3.8) as a component of Red Hat CodeReady Linux Builder (v. 8)
  • python-cffi-0:1.13.2-3.module+el8.4.0+8888+89bc7e79.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.4.0+8888+89bc7e79.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.4.0+8888+89bc7e79.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.4.0+8888+89bc7e79.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.4.0+8888+89bc7e79.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.4.0+8888+89bc7e79.src (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: In versions of Python shipped with Red Hat Enterprise Linux and Red Hat Software Collections, the flaw can be mitigated by not running the python tests with network resources enabled. By default, the tests are not run with network resources enabled. Ensure that `-u network` or `-uall` are not passed as options to `python -m test`. For more information on how these commands work, see [1]. 1. https://docs.python.org/3/library/test.html Workaround: If using the jinja2 library as a developer, this flaw can be mitigated by not using the vulnerable urlize() filter, and instead, using Markdown to format user content. Workaround: Use the console (no argument needed) or HTML file (-w argument) output to generate docs rather than the HTTP server options. Put differently, do not use the -p or -n options of pydoc. Workaround: Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

🔗 References (13)