CVSS 3.1
6.5 mediumCVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:HMedium (6.5) in tox-dev filelock. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in filelock 3.20.1.
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:Hfilelock (PyPI): fixed in 3.20.1Explain CVE-2025-68146 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-68146?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-68146?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-68146 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| tox-dev:filelock | before 3.20.1 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-w853-jp5j-5j7f | PyPI | filelock | <3.20.1 | 3.20.1 |
| PYSEC-2026-1375 | PyPI | filelock | <3.20.1 | 3.20.1 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12 | python-filelock | 3.9.0-1+deb12u1 | DEBIAN-CVE-2025-68146 |
| Debian | 13 | python-filelock | 3.18.0-1+deb13u1 | DEBIAN-CVE-2025-68146 |
| Debian | 14 | python-filelock | 3.20.2-1 | DEBIAN-CVE-2025-68146 |
| Ubuntu | 25.10, 26.10 | python-filelock | no fix listed | UBUNTU-CVE-2025-68146 |
| Ubuntu | Pro:18.04:LTS | python-filelock | 3.0.4-1ubuntu0.1~esm1 | UBUNTU-CVE-2025-68146 USN-7999-1 |
| Ubuntu | Pro:20.04:LTS | python-filelock | 3.0.12-2ubuntu0.1~esm1 | USN-7999-1 |
| Ubuntu | Pro:22.04:LTS | python-filelock | 3.6.0-1ubuntu0.1~esm1 | UBUNTU-CVE-2025-68146 USN-7999-1 |
| Ubuntu | Pro:24.04:LTS | python-filelock | 3.13.1-1ubuntu0.1~esm1 | UBUNTU-CVE-2025-68146 USN-7999-1 |
| SUSE | Linux Enterprise Module for Development Tools 15 SP7, Linux Enterprise Module for Package Hub 15 SP7 | python-filelock | 3.0.12-150100.3.6.1 | SUSE-SU-2026:0082-1 |
| SUSE | Linux Enterprise Module for Python 3 15 SP7 | python-filelock | 3.12.2-150400.10.8.1 | SUSE-SU-2026:0220-1 |
| SUSE | Linux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0 | python-filelock | 3.18.0-160000.3.1 | SUSE-SU-2026:20216-1 |
| openSUSE | Leap 15.6 | python-filelock | 3.12.2-150400.10.8.1 | SUSE-SU-2026:0220-1 |
| openSUSE | Leap 16.0 | python-filelock | 3.18.0-160000.3.1 | openSUSE-SU-2026:20144-1 |
| openSUSE | Tumbleweed | ansible-lint | 26.11.0-2.1 | openSUSE-SU-2026:12481-1 |
| openSUSE | Tumbleweed | python-filelock | 3.20.2-1.1 | openSUSE-SU-2026:10010-1 |
| openSUSE | Tumbleweed | python-virtualenv | 20.36.1-1.1 | openSUSE-SU-2026:10055-1 |
| Azure Linux | 2 | python-filelock | no fix listed | AZL-79232 |
| Azure Linux | 3 | python-filelock | 3.20.1-1 | AZL-72739 |
| Alpaquita | 23, 25, stream | py3-filelock | no fix listed | BELL-CVE-2025-68146 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpaquita.
Red Hat rates this Moderate.
This vulnerability is rated Moderate for Red Hat because it is a Time-of-Check-Time-of-Use (TOCTOU) race condition in the `filelock` library that allows a local attacker with low privileges to truncate or corrupt arbitrary user files via symlink attacks. Exploitation requires local filesystem access and the ability to create symlinks, which are standard user permissions on Unix-like systems. The impact is limited to applications utilizing affected versions of `filelock` that create lock files in predictable, attacker-writable locations.
Ensure lock file directories used by applications employing filelock have restrictive permissions, such as chmod 0700, to prevent untrusted users from creating symlinks. Additionally, monitor these directories for suspicious symlinks before executing trusted applications. Applying these permission changes may require a service reload or restart.
| Product | Package | State | Advisory |
|---|---|---|---|
| Migration Toolkit for Containers | rhmtc/openshift-migration-hook-runner-rhel8 | Fix deferred | |
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-ocp-rag-rhel9 | Fix deferred | |
| OpenShift Lightspeed | openshift-lightspeed/lightspeed-service-api-rhel9 | Fix deferred | |
| OpenShift Lightspeed | openshift-lightspeed-tech-preview/lightspeed-rag-tool-rhel9 | Fix deferred | |
| OpenShift Service Mesh 2 | openshift-service-mesh/grafana-rhel8 | Fix deferred | |
| OpenShift Service Mesh 2 | openshift-service-mesh/istio-cni-rhel8 | Fix deferred | |
| OpenShift Service Mesh 2 | openshift-service-mesh/istio-must-gather-rhel9 | Fix deferred | |
| OpenShift Service Mesh 2 | openshift-service-mesh/istio-operator-bundle | Fix deferred | |
| OpenShift Service Mesh 2 | openshift-service-mesh/istio-rhel8-operator | Fix deferred | |
| OpenShift Service Mesh 2 | openshift-service-mesh/pilot-rhel8 | Fix deferred | |
| OpenShift Service Mesh 2 | openshift-service-mesh/proxyv2-rhel9 | Fix deferred | |
| OpenShift Service Mesh 2 | openshift-service-mesh/ratelimit-rhel8 | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh-dev-preview-beta/istio-ztunnel-rhel9 | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh/istio-cni-rhel9 | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh/istio-must-gather-rhel9 | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh/istio-pilot-rhel9 | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh/istio-proxyv2-rhel9 | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh/istio-rhel9-operator | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh/istio-sail-operator-bundle | Fix deferred | |
| OpenShift Service Mesh 3 | openshift-service-mesh/istio-ztunnel-rhel9 | Fix deferred | |
| 128 more in the JSON and on Red Hat's page. | |||
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-68146.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.