tox-dev filelock up to 3.20.0 on Python UnixFileLock/WindowsFileLock os.open toctou
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.4 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as problematic, was found in tox-dev filelock up to 3.20.0 on Python. Affected by this issue is the function os.open of the component UnixFileLock/WindowsFileLock. Executing a manipulation can lead to toctou.
This vulnerability appears as CVE-2025-68146. The attack requires local access. There is no available exploit.
You should upgrade the affected component.
Details
A vulnerability classified as problematic was found in tox-dev filelock up to 3.20.0 on Python. This vulnerability affects the function os.open of the component UnixFileLock/WindowsFileLock. The manipulation with an unknown input leads to a toctou vulnerability. The CWE definition for the vulnerability is CWE-367. The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. This can cause the product to perform invalid actions when the resource is in an unexpected state. As an impact it is known to affect integrity, and availability. CVE summarizes:
filelock is a platform-independent file lock for Python. In versions prior to 3.20.1, a Time-of-Check-Time-of-Use (TOCTOU) race condition allows local attackers to corrupt or truncate arbitrary user files through symlink attacks. The vulnerability exists in both Unix and Windows lock file creation where filelock checks if a file exists before opening it with O_TRUNC. An attacker can create a symlink pointing to a victim file in the time gap between the check and open, causing os.open() to follow the symlink and truncate the target file. All users of filelock on Unix, Linux, macOS, and Windows systems are impacted. The vulnerability cascades to dependent libraries. The attack requires local filesystem access and ability to create symlinks (standard user permissions on Unix; Developer Mode on Windows 10+). Exploitation succeeds within 1-3 attempts when lock file paths are predictable. The issue is fixed in version 3.20.1. If immediate upgrade is not possible, use SoftFileLock instead of UnixFileLock/WindowsFileLock (note: different locking semantics, may not be suitable for all use cases); ensure lock file directories have restrictive permissions (chmod 0700) to prevent untrusted users from creating symlinks; and/or monitor lock file directories for suspicious symlinks before running trusted applications. These workarounds provide only partial mitigation. The race condition remains exploitable. Upgrading to version 3.20.1 is strongly recommended.
The advisory is available at github.com. This vulnerability was named CVE-2025-68146 since 12/15/2025. The exploitation appears to be difficult. Local access is required to approach this attack. Technical details are known, but there is no available exploit.
The vulnerability scanner Nessus provides a plugin with the ID 282543 (SUSE SLED15 / SLES15 Security Update : python-filelock (SUSE-SU-2026:0082-1)), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 3.20.1 eliminates this vulnerability. The upgrade is hosted for download at github.com. Applying the patch 4724d7f8c3393ec1f048c93933e6e3e6ec321f0e is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (282543) and CERT Bund (WID-SEC-2026-1730). If you want to get best quality of vulnerability data, you may have to visit VulDB.
Affected
- Xerox FreeFlow Print Server
Product
Vendor
Name
Version
License
Website
- Product: https://github.com/tox-dev/filelock/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.5VulDB Meta Temp Score: 5.4
VulDB Base Score: 3.6
VulDB Temp Score: 3.5
VulDB Vector: 🔒
VulDB Reliability: 🔍
NVD Base Score: 6.5
NVD Vector: 🔒
CNA Base Score: 6.3
CNA Vector (GitHub_M): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: ToctouCWE: CWE-367 / CWE-362
CAPEC: 🔒
ATT&CK: 🔒
Physical: Partially
Local: Yes
Remote: No
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 282543
Nessus Name: SUSE SLED15 / SLES15 Security Update : python-filelock (SUSE-SU-2026:0082-1)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: filelock 3.20.1
Patch: 4724d7f8c3393ec1f048c93933e6e3e6ec321f0e
Timeline
12/15/2025 CVE reserved12/16/2025 Advisory disclosed
12/16/2025 VulDB entry created
05/31/2026 VulDB entry last update
Sources
Product: github.comAdvisory: GHSA-w853-jp5j-5j7f
Status: Confirmed
CVE: CVE-2025-68146 (🔒)
GCVE (CVE): GCVE-0-2025-68146
GCVE (VulDB): GCVE-100-336898
CERT Bund: WID-SEC-2026-1730 - Xerox FreeFlow Print Server: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff
Entry
Created: 12/16/2025 21:39Updated: 05/31/2026 13:38
Changes: 12/16/2025 21:39 (69), 01/10/2026 15:44 (2), 03/05/2026 22:13 (11), 05/31/2026 13:38 (7)
Complete: 🔍
Cache ID: 216::103
If you want to get best quality of vulnerability data, you may have to visit VulDB.
No comments yet. Languages: en.
Please log in to comment.