Vendors › Red Hat

RHSA-2024:2987

Medium (7.5) EPSS 5.2% Red Hat · RHEL

Red Hat Security Advisory: python27:2.7 security update

This update addresses 5 security flaws in Cython, PyYAML, babel and 95 more component(s) shipped with RHEL. The most severe flaw, a use-after-free weakness, could allow an attacker to disrupt service on affected systems.

Published2024-05-22
Updated2026-11-08
AffectedAppStream-8.10.0.GA: Cython versions before 0.28.1-7.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: PyYAML versions before 3.12-16.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: babel versions before 2.5.1-10.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: numpy versions before 1.14.2-16.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: pytest versions before 3.4.2-13.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-PyMySQL versions before 0.8.0-10.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-attrs versions before 17.4.0-10.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-backports versions before 1.0-16.module+el8.9.0+18326+1b5baeee; AppStream-8.10.0.GA: python-backports-ssl_match_hostname versions before 3.5.0.1-12.module+el8.9.0+18326+1b5baeee; AppStream-8.10.0.GA: python-chardet versions before 3.0.4-10.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-coverage versions before 4.5.1-5.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-dns versions before 1.15.0-10.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-docs versions before 2.7.16-2.module+el8.9.0+18326+1b5baeee; AppStream-8.10.0.GA: python-docutils versions before 0.14-12.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-funcsigs versions before 1.0.2-13.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-idna versions before 2.5-7.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-ipaddress versions before 1.0.18-6.module+el8.9.0+18326+1b5baeee; AppStream-8.10.0.GA: python-jinja2 versions before 2.10-10.module+el8.10.0+21290+abd5b761; AppStream-8.10.0.GA: python-lxml versions before 4.2.3-6.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-markupsafe versions before 0.23-19.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-mock versions before 2.0.0-13.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-nose versions before 1.3.7-31.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-nose-docs versions before 1.3.7-31.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-pluggy versions before 0.6.0-8.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-psycopg2 versions before 2.7.5-8.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-psycopg2-doc versions before 2.7.5-8.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-py versions before 1.5.3-6.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-pygments versions before 2.2.0-22.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-pymongo versions before 3.7.0-1.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-pysocks versions before 1.6.8-6.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-pytest-mock versions before 1.9.0-4.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-requests versions before 2.20.0-4.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-setuptools_scm versions before 1.15.7-6.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-sqlalchemy versions before 1.3.2-2.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-sqlalchemy-doc versions before 1.3.2-2.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-urllib3 versions before 1.24.2-4.module+el8.10.0+20444+3bf7fee4; AppStream-8.10.0.GA: python-virtualenv versions before 15.1.0-22.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python-wheel versions before 0.31.1-3.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2 versions before 2.7.18-17.module+el8.10.0+20822+a15ec22d; AppStream-8.10.0.GA: python2-Cython versions before 0.28.1-7.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-PyMySQL versions before 0.8.0-10.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-attrs versions before 17.4.0-10.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-babel versions before 2.5.1-10.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-backports versions before 1.0-16.module+el8.9.0+18326+1b5baeee; AppStream-8.10.0.GA: python2-backports-ssl_match_hostname versions before 3.5.0.1-12.module+el8.9.0+18326+1b5baeee; AppStream-8.10.0.GA: python2-bson versions before 3.7.0-1.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-chardet versions before 3.0.4-10.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-coverage versions before 4.5.1-5.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-debug versions before 2.7.18-17.module+el8.10.0+20822+a15ec22d; AppStream-8.10.0.GA: python2-devel versions before 2.7.18-17.module+el8.10.0+20822+a15ec22d; AppStream-8.10.0.GA: python2-dns versions before 1.15.0-10.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-docs versions before 2.7.16-2.module+el8.9.0+18326+1b5baeee; AppStream-8.10.0.GA: python2-docs-info versions before 2.7.16-2.module+el8.9.0+18326+1b5baeee; AppStream-8.10.0.GA: python2-docutils versions before 0.14-12.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-funcsigs versions before 1.0.2-13.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-idna versions before 2.5-7.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-ipaddress versions before 1.0.18-6.module+el8.9.0+18326+1b5baeee; AppStream-8.10.0.GA: python2-jinja2 versions before 2.10-10.module+el8.10.0+21290+abd5b761; AppStream-8.10.0.GA: python2-libs versions before 2.7.18-17.module+el8.10.0+20822+a15ec22d; AppStream-8.10.0.GA: python2-lxml versions before 4.2.3-6.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-markupsafe versions before 0.23-19.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-mock versions before 2.0.0-13.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-nose versions before 1.3.7-31.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-numpy versions before 1.14.2-16.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-numpy-doc versions before 1.14.2-16.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-numpy-f2py versions before 1.14.2-16.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-pip versions before 9.0.3-19.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-pip-wheel versions before 9.0.3-19.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-pluggy versions before 0.6.0-8.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-psycopg2 versions before 2.7.5-8.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-psycopg2-debug versions before 2.7.5-8.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-psycopg2-tests versions before 2.7.5-8.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-py versions before 1.5.3-6.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-pygments versions before 2.2.0-22.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-pymongo versions before 3.7.0-1.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-pymongo-gridfs versions before 3.7.0-1.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-pysocks versions before 1.6.8-6.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-pytest versions before 3.4.2-13.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-pytest-mock versions before 1.9.0-4.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-pytz versions before 2017.2-13.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-pyyaml versions before 3.12-16.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-requests versions before 2.20.0-4.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-rpm-macros versions before 3-38.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-scipy versions before 1.0.0-22.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-setuptools versions before 39.0.1-14.module+el8.10.0+20444+3bf7fee4; AppStream-8.10.0.GA: python2-setuptools-wheel versions before 39.0.1-14.module+el8.10.0+20444+3bf7fee4; AppStream-8.10.0.GA: python2-setuptools_scm versions before 1.15.7-6.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-six versions before 1.11.0-6.module+el8.9.0+18326+1b5baeee; AppStream-8.10.0.GA: python2-sqlalchemy versions before 1.3.2-2.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-test versions before 2.7.18-17.module+el8.10.0+20822+a15ec22d; AppStream-8.10.0.GA: python2-tkinter versions before 2.7.18-17.module+el8.10.0+20822+a15ec22d; AppStream-8.10.0.GA: python2-tools versions before 2.7.18-17.module+el8.10.0+20822+a15ec22d; AppStream-8.10.0.GA: python2-urllib3 versions before 1.24.2-4.module+el8.10.0+20444+3bf7fee4; AppStream-8.10.0.GA: python2-virtualenv versions before 15.1.0-22.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-wheel versions before 0.31.1-3.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: python2-wheel-wheel versions before 0.31.1-3.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: pytz versions before 2017.2-13.module+el8.9.0+19487+7dc18407; AppStream-8.10.0.GA: scipy versions before 1.0.0-22.module+el8.9.0+19487+7dc18407
FixAppStream-8.10.0.GA: update Cython to 0.28.1-7.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update PyYAML to 3.12-16.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update babel to 2.5.1-10.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update numpy to 1.14.2-16.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update pytest to 3.4.2-13.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-PyMySQL to 0.8.0-10.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-attrs to 17.4.0-10.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-backports to 1.0-16.module+el8.9.0+18326+1b5baeee or later; AppStream-8.10.0.GA: update python-backports-ssl_match_hostname to 3.5.0.1-12.module+el8.9.0+18326+1b5baeee or later; AppStream-8.10.0.GA: update python-chardet to 3.0.4-10.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-coverage to 4.5.1-5.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-dns to 1.15.0-10.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-docs to 2.7.16-2.module+el8.9.0+18326+1b5baeee or later; AppStream-8.10.0.GA: update python-docutils to 0.14-12.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-funcsigs to 1.0.2-13.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-idna to 2.5-7.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-ipaddress to 1.0.18-6.module+el8.9.0+18326+1b5baeee or later; AppStream-8.10.0.GA: update python-jinja2 to 2.10-10.module+el8.10.0+21290+abd5b761 or later; AppStream-8.10.0.GA: update python-lxml to 4.2.3-6.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-markupsafe to 0.23-19.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-mock to 2.0.0-13.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-nose to 1.3.7-31.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-nose-docs to 1.3.7-31.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-pluggy to 0.6.0-8.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-psycopg2 to 2.7.5-8.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-psycopg2-doc to 2.7.5-8.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-py to 1.5.3-6.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-pygments to 2.2.0-22.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-pymongo to 3.7.0-1.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-pysocks to 1.6.8-6.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-pytest-mock to 1.9.0-4.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-requests to 2.20.0-4.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-setuptools_scm to 1.15.7-6.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-sqlalchemy to 1.3.2-2.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-sqlalchemy-doc to 1.3.2-2.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-urllib3 to 1.24.2-4.module+el8.10.0+20444+3bf7fee4 or later; AppStream-8.10.0.GA: update python-virtualenv to 15.1.0-22.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python-wheel to 0.31.1-3.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python2 to 2.7.18-17.module+el8.10.0+20822+a15ec22d or later; AppStream-8.10.0.GA: update python2-Cython to 0.28.1-7.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python2-PyMySQL to 0.8.0-10.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python2-attrs to 17.4.0-10.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python2-babel to 2.5.1-10.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python2-backports to 1.0-16.module+el8.9.0+18326+1b5baeee or later; AppStream-8.10.0.GA: update python2-backports-ssl_match_hostname to 3.5.0.1-12.module+el8.9.0+18326+1b5baeee or later; AppStream-8.10.0.GA: update python2-bson to 3.7.0-1.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python2-chardet to 3.0.4-10.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python2-coverage to 4.5.1-5.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python2-debug to 2.7.18-17.module+el8.10.0+20822+a15ec22d or later; AppStream-8.10.0.GA: update python2-devel to 2.7.18-17.module+el8.10.0+20822+a15ec22d or later; AppStream-8.10.0.GA: update python2-dns to 1.15.0-10.module+el8.9.0+19487+7dc18407 or later; AppStream-8.10.0.GA: update python2-docs to 2.7.16-2.module+el8.9.0+18326+1b5baeee or later; ... (full fixed-package list in the linked advisory)
Vendor advisoryhttps://access.redhat.com/errata/RHSA-2024:2987

CVEs (5)

CVECWETypeImpactLinks
CVE-2022-40897CWE-1333OtherDenial of ServiceNVD · CVE.org · EUVD
CVE-2022-48560———NVD · CVE.org · EUVD
CVE-2022-48565———NVD · CVE.org · EUVD
CVE-2023-43804CWE-200OtherInformation LeakNVD · CVE.org · EUVD
CVE-2024-22195CWE-79Cross-Site Scripting (XSS)Information LeakNVD · CVE.org · EUVD

CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.

Same CVE in other advisories

Open in the CVEMesh app Create a free account

Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.

CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.