import CS python3x-setuptools-50.3.2-5.module_el8+695+192a31a9
This commit is contained in:
parent
2ab008e7ed
commit
8f4d46a5ec
13
SOURCES/CVE-2022-40897.patch
Normal file
13
SOURCES/CVE-2022-40897.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
|
||||||
|
index 123e958..a90b810 100644
|
||||||
|
--- a/setuptools/package_index.py
|
||||||
|
+++ b/setuptools/package_index.py
|
||||||
|
@@ -215,7 +215,7 @@ def unique_values(func):
|
||||||
|
return wrapper
|
||||||
|
|
||||||
|
|
||||||
|
-REL = re.compile(r"""<([^>]*\srel\s*=\s*['"]?([^'">]+)[^>]*)>""", re.I)
|
||||||
|
+REL = re.compile(r"""<([^>]*\srel\s{0,10}=\s{0,10}['"]?([^'" >]+)[^>]*)>""", re.I)
|
||||||
|
# this line is here to fix emacs' cruddy broken syntax highlighting
|
||||||
|
|
||||||
|
|
||||||
@ -14,7 +14,7 @@
|
|||||||
Name: python3x-setuptools
|
Name: python3x-setuptools
|
||||||
# When updating, update the bundled libraries versions bellow!
|
# When updating, update the bundled libraries versions bellow!
|
||||||
Version: 50.3.2
|
Version: 50.3.2
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Easily build and distribute Python packages
|
Summary: Easily build and distribute Python packages
|
||||||
# setuptools is MIT
|
# setuptools is MIT
|
||||||
# appdirs is MIT
|
# appdirs is MIT
|
||||||
@ -27,6 +27,12 @@ License: MIT and (BSD or ASL 2.0)
|
|||||||
URL: https://pypi.python.org/pypi/%{srcname}
|
URL: https://pypi.python.org/pypi/%{srcname}
|
||||||
Source0: %{pypi_source %{srcname} %{version} zip}
|
Source0: %{pypi_source %{srcname} %{version} zip}
|
||||||
|
|
||||||
|
# Security fix for CVE-2022-40897
|
||||||
|
# Regular Expression Denial of Service (ReDoS) in package_index.py
|
||||||
|
# Resolved upstream: https://github.com/pypa/setuptools/commit/43a9c9bfa6aa626ec2a22540bea28d2ca77964be
|
||||||
|
# The patch is backported without test because that requires pytest.timeout.
|
||||||
|
Patch1: CVE-2022-40897.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
||||||
# x86_64 compose of CRB, but we don't want to ship it at all.
|
# x86_64 compose of CRB, but we don't want to ship it at all.
|
||||||
@ -207,6 +213,10 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 03 2023 Lumír Balhar <lbalhar@redhat.com> - 50.3.2-5
|
||||||
|
- Fix for CVE-2022-40897
|
||||||
|
Resolves: RHEL-9764
|
||||||
|
|
||||||
* Thu Aug 05 2021 Tomas Orsava <torsava@redhat.com> - 50.3.2-4
|
* Thu Aug 05 2021 Tomas Orsava <torsava@redhat.com> - 50.3.2-4
|
||||||
- Adjusted the postun scriptlets to enable upgrading to RHEL 9
|
- Adjusted the postun scriptlets to enable upgrading to RHEL 9
|
||||||
- Resolves: rhbz#1933055
|
- Resolves: rhbz#1933055
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user