import UBI python-setuptools-69.0.3-12.el10_0
This commit is contained in:
parent
3243fa48d2
commit
8de0dabad8
29
CVE-2025-47273.patch
Normal file
29
CVE-2025-47273.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
From 19d6fa7fcb22aef8192dcbc0adb920c12cb6a648 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Jason R. Coombs" <jaraco@jaraco.com>
|
||||||
|
Date: Sat, 19 Apr 2025 13:03:47 -0400
|
||||||
|
Subject: [PATCH] Add a check to ensure the name resolves relative to the
|
||||||
|
tmpdir.
|
||||||
|
|
||||||
|
Closes #4946
|
||||||
|
---
|
||||||
|
setuptools/package_index.py | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
|
||||||
|
index f52592a..ebafe9f 100644
|
||||||
|
--- a/setuptools/package_index.py
|
||||||
|
+++ b/setuptools/package_index.py
|
||||||
|
@@ -828,6 +828,10 @@ class PackageIndex(Environment):
|
||||||
|
|
||||||
|
filename = os.path.join(tmpdir, name)
|
||||||
|
|
||||||
|
+ # ensure path resolves within the tmpdir
|
||||||
|
+ if not filename.startswith(str(tmpdir)):
|
||||||
|
+ raise ValueError(f"Invalid filename {filename}")
|
||||||
|
+
|
||||||
|
# Download the file
|
||||||
|
#
|
||||||
|
if scheme == 'svn' or scheme.startswith('svn+'):
|
||||||
|
--
|
||||||
|
2.49.0
|
||||||
|
|
@ -2,7 +2,7 @@
|
|||||||
## (rpmautospec version 0.6.5)
|
## (rpmautospec version 0.6.5)
|
||||||
## RPMAUTOSPEC: autorelease, autochangelog
|
## RPMAUTOSPEC: autorelease, autochangelog
|
||||||
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
%define autorelease(e:s:pb:n) %{?-p:0.}%{lua:
|
||||||
release_number = 9;
|
release_number = 12;
|
||||||
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
|
||||||
print(release_number + base_release_number - 1);
|
print(release_number + base_release_number - 1);
|
||||||
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}}
|
||||||
@ -62,6 +62,12 @@ Patch: Adjust-the-setup.py-install-deprecation-message.patch
|
|||||||
# Patch simplified because upstream doesn't support SVN anymore.
|
# Patch simplified because upstream doesn't support SVN anymore.
|
||||||
Patch: CVE-2024-6345.patch
|
Patch: CVE-2024-6345.patch
|
||||||
|
|
||||||
|
# Security fix for CVE-2025-47273
|
||||||
|
# Path traversal in PackageIndex.download leads to Arbitrary File Write
|
||||||
|
# Upstream solution: https://github.com/pypa/setuptools/pull/4951/
|
||||||
|
Patch: CVE-2025-47273.patch
|
||||||
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python%{python3_pkgversion}-devel
|
BuildRequires: python%{python3_pkgversion}-devel
|
||||||
@ -249,6 +255,12 @@ PYTHONPATH=$(pwd) %pytest \
|
|||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
## START: Generated by rpmautospec
|
## START: Generated by rpmautospec
|
||||||
|
* Thu Jun 19 2025 Tomáš Hrnčiar <thrnciar@redhat.com> - 69.0.3-12
|
||||||
|
- Security fix for CVE-2025-47273
|
||||||
|
|
||||||
|
* Fri Nov 29 2024 Lukáš Zachar <lzachar@redhat.com> - 69.0.3-11
|
||||||
|
- Change the test source location
|
||||||
|
|
||||||
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 69.0.3-9
|
* Tue Oct 29 2024 Troy Dawson <tdawson@redhat.com> - 69.0.3-9
|
||||||
- Bump release for October 2024 mass rebuild:
|
- Bump release for October 2024 mass rebuild:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user