Red Hat Security Advisory: python27 security update
🔗 CVE IDs covered (8)
📋 Description
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-3177 — python: Stack-based buffer overflow in PyCArg_repr in _ctypes/callproc.c CVE-2021-20095 — python-babel: Relative path traversal allows attacker to load arbitrary locale files and execute arbitrary code CVE-2021-20270 — python-pygments: Infinite loop in SML lexer may lead to DoS 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-27291 — python-pygments: ReDoS in multiple lexers CVE-2021-42771 — python-babel: Relative path traversal allows attacker to load arbitrary locale files and execute arbitrary code
🎯 Affected products83
- 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.7)
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
- python27-babel-0:0.9.6-10.el7.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- python27-babel-0:0.9.6-10.el7.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- python27-babel-0:0.9.6-10.el7.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
- python27-babel-0:0.9.6-10.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- python27-babel-0:0.9.6-10.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- python27-babel-0:0.9.6-10.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
- python27-python-0:2.7.18-3.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- python27-python-0:2.7.18-3.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- python27-python-0:2.7.18-3.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- python27-python-0:2.7.18-3.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- python27-python-0:2.7.18-3.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- python27-python-0:2.7.18-3.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- python27-python-0:2.7.18-3.el7.src as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
- python27-python-0:2.7.18-3.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- python27-python-0:2.7.18-3.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- python27-python-0:2.7.18-3.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
- python27-python-babel-0:0.9.6-10.el7.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- python27-python-babel-0:0.9.6-10.el7.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- python27-python-babel-0:0.9.6-10.el7.noarch as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
- python27-python-debug-0:2.7.18-3.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- python27-python-debug-0:2.7.18-3.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- python27-python-debug-0:2.7.18-3.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- python27-python-debug-0:2.7.18-3.el7.s390x as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- python27-python-debug-0:2.7.18-3.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- python27-python-debug-0:2.7.18-3.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.7)
- python27-python-debug-0:2.7.18-3.el7.x86_64 as a component of Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7)
- python27-python-debuginfo-0:2.7.18-3.el7.ppc64le as a component of Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7)
- +53 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.
🔗 References (11)
- selfhttps://access.redhat.com/errata/RHSA-2021:3252
- externalhttps://access.redhat.com/security/updates/classification/#moderate
- externalhttps://access.redhat.com/articles/5860431
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1889886
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1918168
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1922136
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1928707
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1928904
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1940603
- externalhttps://bugzilla.redhat.com/show_bug.cgi?id=1955615
- selfhttps://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_3252.json