Issued:
2021-08-24
Updated:
2021-08-24

RHSA-2021:3252 - Moderate: python27 security update


Synopsis

Moderate: python27 security update

Type/Severity

Security Advisory Moderate

Topic

An update for python27-babel, python27-python, python27-python-jinja2, and python27-python-pygments is now available for Red Hat Software Collections.

Red Hat Product Security has rated this update as having a security impact of Moderate. A Common Vulnerability Scoring System (CVSS) base score, which gives a detailed severity rating, is available for each vulnerability from the CVE link(s) in the References section.

Description

Python is an interpreted, interactive, object-oriented programming language, which includes modules, classes, exceptions, very high level dynamic data types and dynamic typing. Python supports interfaces to many system calls and libraries, as well as to various windowing systems.

Security Fix(es):

  • python: Unsafe use of eval() on data retrieved via HTTP in the test suite (CVE-2020-27619)

  • python-jinja2: ReDoS vulnerability due to the sub-pattern (CVE-2020-28493)

  • python: Stack-based buffer overflow in PyCArg_repr in _ctypes/callproc.c (CVE-2021-3177)

  • python-babel: Relative path traversal allows attacker to load arbitrary locale files and execute arbitrary code (CVE-2021-20095)

  • python-pygments: Infinite loop in SML lexer may lead to DoS (CVE-2021-20270)

  • python: Web cache poisoning via urllib.parse.parse_qsl and urllib.parse.parse_qs by using a semicolon in query parameters (CVE-2021-23336)

  • python-pygments: ReDoS via crafted malicious input (CVE-2021-27291)

For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

Additional information

  • Changes in the default separator for the Python urllib parsing functions

To mitigate the Web Cache Poisoning CVE-2021-23336 in the Python urllib library, the default separator for the urllib.parse.parse_qsl and urllib.parse.parse_qs functions is being changed from both ampersand (&) and semicolon (;) to only an ampersand.

The change of the default separator is potentially backwards incompatible, therefore Red Hat provides a way to configure the behavior in Python packages where the default separator has been changed. In addition, the affected urllib parsing functions issue a warning if they detect that a customer’s application has been affected by the change.

For more information, see the Knowledgebase article "Mitigation of Web Cache Poisoning in the Python urllib library (CVE-2021-23336)" linked from the References section.

Solution

For details on how to apply this update, which includes the changes described in this advisory, refer to:

https://access.redhat.com/articles/11258

Affected Products

ProductVersionArch
Red Hat Software Collections (for RHEL Workstation)1x86_64
Red Hat Software Collections (for RHEL Server)1x86_64
Red Hat Software Collections (for RHEL Server)1x86_64
Red Hat Software Collections (for RHEL Server for System Z)1s390x
Red Hat Software Collections (for RHEL Server for System Z)1s390x
Red Hat Software Collections (for RHEL Server for IBM Power LE)1ppc64le
Red Hat Software Collections (for RHEL Server for IBM Power LE)1ppc64le

Updated Packages

  • python27-python-2.7.18-3.el7.ppc64le.rpm
  • python27-python-jinja2-2.6-16.el7.src.rpm
  • python27-python-pygments-1.5-5.el7.noarch.rpm
  • python27-python-2.7.18-3.el7.s390x.rpm
  • python27-python-test-2.7.18-3.el7.ppc64le.rpm
  • python27-tkinter-2.7.18-3.el7.s390x.rpm
  • python27-python-2.7.18-3.el7.src.rpm
  • python27-python-libs-2.7.18-3.el7.s390x.rpm
  • python27-babel-0.9.6-10.el7.src.rpm
  • python27-python-devel-2.7.18-3.el7.s390x.rpm
  • python27-python-libs-2.7.18-3.el7.ppc64le.rpm
  • python27-python-debuginfo-2.7.18-3.el7.x86_64.rpm
  • python27-python-debug-2.7.18-3.el7.x86_64.rpm
  • python27-python-pygments-1.5-5.el7.src.rpm
  • python27-python-2.7.18-3.el7.x86_64.rpm
  • python27-python-jinja2-2.6-16.el7.noarch.rpm
  • python27-python-tools-2.7.18-3.el7.x86_64.rpm
  • python27-python-debuginfo-2.7.18-3.el7.ppc64le.rpm
  • python27-tkinter-2.7.18-3.el7.ppc64le.rpm
  • python27-babel-0.9.6-10.el7.noarch.rpm
  • python27-python-babel-0.9.6-10.el7.noarch.rpm
  • python27-python-devel-2.7.18-3.el7.ppc64le.rpm
  • python27-python-debug-2.7.18-3.el7.s390x.rpm
  • python27-python-debuginfo-2.7.18-3.el7.s390x.rpm
  • python27-python-test-2.7.18-3.el7.x86_64.rpm
  • python27-python-test-2.7.18-3.el7.s390x.rpm
  • python27-tkinter-2.7.18-3.el7.x86_64.rpm
  • python27-python-libs-2.7.18-3.el7.x86_64.rpm
  • python27-python-debug-2.7.18-3.el7.ppc64le.rpm
  • python27-python-devel-2.7.18-3.el7.x86_64.rpm
  • python27-python-tools-2.7.18-3.el7.ppc64le.rpm
  • python27-python-tools-2.7.18-3.el7.s390x.rpm

Fixes

CVEs

References


Additional information