Skip to content

Commit 67f511f

Browse files
authored
[MEDIUM] Upgrade python-filelock to 3.20.1 for CVE-2025-68146 (microsoft#15376)
1 parent abf7841 commit 67f511f

4 files changed

Lines changed: 28 additions & 5 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Signatures": {
3-
"python-filelock-3.14.0.tar.gz": "6ea72da3be9b8c82afd3edcf99f2fffbb5076335a5ae4d03248bb5b6c3eae78a"
3+
"python-filelock-3.20.1.tar.gz": "b8360948b351b80f420878d8516519a2204b07aefcdcfd24912a5d33127f188c"
44
}
55
}

SPECS/python-filelock/python-filelock.spec

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
%global srcname filelock
22
Summary: A platform independent file lock
33
Name: python-filelock
4-
Version: 3.14.0
4+
Version: 3.20.1
55
Release: 1%{?dist}
66
License: Unlicense
77
Vendor: Microsoft Corporation
88
Distribution: Azure Linux
99
URL: https://github.com/toxdev/filelock
1010
Source0: https://files.pythonhosted.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz#/%{name}-%{version}.tar.gz
11+
Patch0: remove-python-3.14-classifier.patch
1112
BuildArch: noarch
1213

1314
%description
@@ -30,6 +31,7 @@ BuildRequires: python%{python3_pkgversion}-setuptools
3031
BuildRequires: python%{python3_pkgversion}-setuptools_scm
3132
BuildRequires: python%{python3_pkgversion}-trove-classifiers
3233
%if %{with check}
34+
BuildRequires: python%{python3_pkgversion}-pytest-asyncio
3335
BuildRequires: python%{python3_pkgversion}-pytest
3436
BuildRequires: python%{python3_pkgversion}-pytest-mock
3537
%endif
@@ -55,14 +57,22 @@ the same lock object twice, it will not block.
5557
%pyproject_save_files %{srcname}
5658

5759
%check
60+
sed -i '/asyncio_default_fixture_loop_scope/d' pyproject.toml
61+
sed -i '/verbosity_assertions/d' pyproject.toml
5862
pip3 install iniconfig
59-
%pytest
63+
pip3 install pytest-virtualenv
64+
pip3 install pytest-timeout
65+
pip3 install pytest-asyncio
66+
%pytest -k "not test_mtime_zero_exit_branch" -v
6067

6168
%files -n python%{python3_pkgversion}-%{srcname} -f %{pyproject_files}
6269
%doc README.md
6370
%license %{python3_sitelib}/%{srcname}-%{version}.dist-info/licenses/LICENSE
6471

6572
%changelog
73+
* Tue Dec 23 2025 Archana Shettigar <v-shettigara@microsoft.com> - 3.20.1-1
74+
- Auto-upgrade to 3.20.1 - for CVE-2025-68146
75+
6676
* Fri Apr 26 2024 Osama Esmail <osamaesmail@microsoft.com> - 3.14.0-1
6777
- Lot of redoing to use pyproject
6878
- Removing 'docs' subpackage since the new src doesn't include that folder
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/pyproject.toml b/pyproject.toml
2+
index 7b09dd5..568f3dd 100644
3+
--- a/pyproject.toml
4+
+++ b/pyproject.toml
5+
@@ -31,8 +31,6 @@ classifiers = [
6+
"Programming Language :: Python :: 3.10",
7+
"Programming Language :: Python :: 3.11",
8+
"Programming Language :: Python :: 3.12",
9+
- "Programming Language :: Python :: 3.13",
10+
- "Programming Language :: Python :: 3.14",
11+
"Topic :: Internet",
12+
"Topic :: Software Development :: Libraries",
13+
"Topic :: System",

cgmanifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22863,8 +22863,8 @@
2286322863
"type": "other",
2286422864
"other": {
2286522865
"name": "python-filelock",
22866-
"version": "3.14.0",
22867-
"downloadUrl": "https://files.pythonhosted.org/packages/source/f/filelock/filelock-3.14.0.tar.gz"
22866+
"version": "3.20.1",
22867+
"downloadUrl": "https://files.pythonhosted.org/packages/source/f/filelock/filelock-3.20.1.tar.gz"
2286822868
}
2286922869
}
2287022870
},

0 commit comments

Comments
 (0)