Skip to main content

Python 3.8 filelock with CVE-2025-68146 security patch (symlink attack prevention via O_NOFOLLOW)

Project description

Filelock LTS (py3.8) - 🛡️ PATCHED (Backport)

Metric Details
CVE CVE-2025-68146
Version 2025.68146
Base Core filelock 3.16.1
Python Python 3.8
License Unlicense (Public Domain)

🛡️ Security Patch Overview

This release backports the critical security fix for CVE-2025-68146 to Python 3.8.

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.8.

The Solution

This package is a drop-in replacement. It contains the original source code of filelock 3.16.1 but applies the specific security patch manually.

pip install filelock-lts-py3.8==2025.68146

⚙️ Technical Details

  • Fix Implementation: We force os.O_NOFOLLOW in the UnixFileLock handler.
  • Verification: You can compare the source tree of this branch against the official filelock 3.16.1 tag. 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:

  1. 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.
  2. Runtime Protection: A filelock-lts-runtime module that scans your environment and hot-patches vulnerable libraries in memory without requiring a restart.
  3. Configurable Policies: Choose between warn, block, or sandbox modes for file operations.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

filelock_lts_py38-2025.68146.1.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

filelock_lts_py38-2025.68146.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file filelock_lts_py38-2025.68146.1.tar.gz.

File metadata

  • Download URL: filelock_lts_py38-2025.68146.1.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for filelock_lts_py38-2025.68146.1.tar.gz
Algorithm Hash digest
SHA256 9561bd8a39d1e84ad0c4f5fe3a6133f3d13bdadbf61ae68a351f4a9e1c36d40b
MD5 3d3b7e2eb63dc3a1848986aac8218190
BLAKE2b-256 c7b577871cefe0cf44b6ecfcd1ecb44a526e7fe5a008d763015ac086b0970755

See more details on using hashes here.

Provenance

The following attestation bundles were made for filelock_lts_py38-2025.68146.1.tar.gz:

Publisher: publish.yml on 1minds3t/filelock-lts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file filelock_lts_py38-2025.68146.1-py3-none-any.whl.

File metadata

File hashes

Hashes for filelock_lts_py38-2025.68146.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f40a0947587546da614230e7e3bebc3e19bf2cac7d3f669a9d7c3970c8c3df33
MD5 a2ef0180b72a203ab97d0917926a4daa
BLAKE2b-256 0fcdb291e384946fce55bb54bf9628d3f79c1bae78a47a2c47864d82739a2c61

See more details on using hashes here.

Provenance

The following attestation bundles were made for filelock_lts_py38-2025.68146.1-py3-none-any.whl:

Publisher: publish.yml on 1minds3t/filelock-lts

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page