GHSA-w853-jp5j-5j7f · 深刻度: medium · エコシステム: pip — filelock has a TOCTOU race condition which allows symlink attacks during lock file creation
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.
総合評価: CVE-2025-68146 は公開エクスプロイトあり(50/100)。CVSS 深刻度は中。悪用される可能性が高い(EPSS 0.18%、8 パーセンタイル) 根拠: 公開エクスプロイトが 1 件参照されています(Exploit-DB)。 推奨対応: 公開エクスプロイトが確認されています。影響範囲の確認、緩和策の適用、パッチ適用を優先してください。
リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。
| EDB-ID | ソース | 種別 | 公開 | リンク |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS は日次で悪用されやすさの相対度合いを推定します。パーセンタイルは採点済み CVE の中での相対位置(高いほど相対的に深刻)を示します。
| # | 日付 | 旧 EPSS スコア | 新 EPSS スコア | Δ(新 − 旧) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.01% | 0.18% | +0.17% |
| 2 | 2025-12-17 | — | 0.01% | — |
EPSS の全履歴 (全 2 件)
この CVE の CVSS 指標。
| ベーススコア | バージョン | 深刻度 | ベクトル | 悪用しやすさ | 影響 | スコアの出典 |
|---|---|---|---|---|---|---|
| 6.3 | 3.1 | MEDIUM |
|
1.0 | 5.2 | [email protected] |
| 6.5 | 3.1 | MEDIUM |
|
1.0 | 5.5 | [email protected] |
GHSA-w853-jp5j-5j7f · 深刻度: medium · エコシステム: pip — filelock has a TOCTOU race condition which allows symlink attacks during lock file creation
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
— | CVE-2025-68146: 1 source package rows (py3-filelock); 6 state rows across 3 repos (3.23-main, edge-community, edge-main); fixed 0, open 6. | https://security.alpinelinux.org/vuln/CVE-2025-68146 |
debian
|
not yet assigned | CVE-2025-68146 not yet assigned priority: Debian including 1 source packages (python-filelock), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 3, open 2. | https://security-tracker.debian.org/tracker/CVE-2025-68146 |
redhat
|
medium | — | https://access.redhat.com/security/cve/CVE-2025-68146 |
suse
|
medium | CVE-2025-68146 severity moderate: SUSE including 24 source package names (2.1.3-5.8:e2fsprogs-1.47.0-3.1, 2.1.3-5.8:libcom_err2-1.47.0-3.1, …), 75 product×package rows across 43 product lines (Container suse/multi-linux-manager/5.1/x86_64/server, Container suse/sl-micro/6.0/baremetal-os-container, … (43 product lines)): Fixed 74, First Fixed 1. | https://www.suse.com/security/cve/CVE-2025-68146/ |
ubuntu
|
medium | CVE-2025-68146 medium priority: Ubuntu including 1 source packages (python-filelock), 7 status rows across 7 suites (bionic, focal, jammy, noble, plucky, questing, upstream): released 4, ignored 1, needed 1, needs-triage 1. | https://ubuntu.com/security/CVE-2025-68146 |
| URL | タグ |
|---|---|
| https://github.com/tox-dev/filelock/commit/4724d7f8c3393ec1f048c93933e6e3e6ec321f0e | Patch |
| https://github.com/tox-dev/filelock/pull/461 | Issue Tracking Patch |
| https://github.com/tox-dev/filelock/releases/tag/3.20.1 | Product Release Notes |
| https://github.com/tox-dev/filelock/security/advisories/GHSA-w853-jp5j-5j7f | Exploit Mitigation Vendor Advisory |