Python 3.7 filelock with CVE-2025-68146 security patch (symlink attack prevention via O_NOFOLLOW)
Project description
Filelock LTS (py3.7) - 🛡️ PATCHED (Backport)
| Metric | Details |
|---|---|
| CVE | CVE-2025-68146 |
| Version | 2025.68146 |
| Base Core | filelock 3.12.2 |
| Python | Python 3.7 |
| License | Unlicense (Public Domain) |
🛡️ Security Patch Overview
This release backports the critical security fix for CVE-2025-68146 to Python 3.7.
While upstream filelock patched this issue in versions requiring Python 3.10+, millions of installations on older Python versions remain vulnerable. This package restores security parity for legacy environments.
The Problem
- Vulnerability: CVE-2025-68146 (Symlink TOCTOU Attack)
- Impact: Attackers can truncate arbitrary files via symlink race conditions.
- Context: Official upstream patches are not available for Python 3.7.
The Solution
This package is a drop-in replacement. It contains the original source code of filelock 3.12.2 but applies the specific security patch manually.
pip install filelock-lts-py3.7==2025.68146
⚙️ Technical Details
- Fix Implementation: We force
os.O_NOFOLLOWin theUnixFileLockhandler. - Verification: You can compare the source tree of this branch against the official
filelock 3.12.2tag. The only difference is the security patch in_unix.py.
🔮 The Future: Proactive Security
We are building the Filelock LTS Runtime Ecosystem. In future releases, this package will support:
- Pre-Patch Protocols (Alpha): We will release "Pre-Patch" versions (e.g.,
0.2026.1234) immediately upon vulnerability discovery, allowing you to patch before upstream maintainers release official fixes. - Runtime Protection: A
filelock-lts-runtimemodule that scans your environment and hot-patches vulnerable libraries in memory without requiring a restart. - Configurable Policies: Choose between
warn,block, orsandboxmodes for file operations.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file filelock_lts_py37-2025.68146.1-py3-none-any.whl.
File metadata
- Download URL: filelock_lts_py37-2025.68146.1-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7abae223a3b51533444b4ef817158fa14945443dcc5c4b41764c418b13189134
|
|
| MD5 |
284826657a3d7e9aa7e2462d1a623987
|
|
| BLAKE2b-256 |
2d75cb28eb9507783ec3d93551c6acfd901d9d6b8f3007723ac1105ef5a47948
|
Provenance
The following attestation bundles were made for filelock_lts_py37-2025.68146.1-py3-none-any.whl:
Publisher:
publish.yml on 1minds3t/filelock-lts
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
filelock_lts_py37-2025.68146.1-py3-none-any.whl -
Subject digest:
7abae223a3b51533444b4ef817158fa14945443dcc5c4b41764c418b13189134 - Sigstore transparency entry: 779584519
- Sigstore integration time:
-
Permalink:
1minds3t/filelock-lts@6439db2a25cec208e1a120de1171d01dd2d3d845 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/1minds3t
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@6439db2a25cec208e1a120de1171d01dd2d3d845 -
Trigger Event:
workflow_dispatch
-
Statement type: