CVE-2026-144395
filelock: ReadWriteLock can overwrite victim- owned files through a directory swap
- Severity
- 4.4MediumLocal attack, low privileges, needs user interactionCVSS 3.1, CVE List
- Exploitation
- UnknownNo source reports exploitation yet.
- Exploit chance
- 0.20% in 30 daysPercentile10thEPSS, scored
- Listed fix
4.3.0for filelockFrom GitHub Advisories4 other affected packages
Overview
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on POSIX, another account with rename access in a shared, non-sticky lock directory can redirect a SQLite-backed ReadWriteLock operation to a file writable by the locking process. A cross-account overwrite was confirmed on Linux. The affected setup also required a victim-owned directory that the other account could previously read. This issue is fixed in version 4.3.0.
CVSS 3.1 vector
Exploitability
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- Low
- User interaction
- Required
Impact
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:NExploit chance over time
Scored once so far, on . The trend appears after a second daily score.
Affected
Packages 5
| Package | Affected | Fixed |
|---|---|---|
filelockPyPI | before 4.3.0 | 4.3.0 |
python-filelockAzure Linux:3 | through 3.20.3-4 | None listed |
python-filelockDebian:12 | All versions, plus listed versions 3.12.2-13.12.3-13.12.4-13.13.1-13.13.3-1 Show 32 more versionsShow less3.13.4-13.14.0-13.15.4-13.16.1-13.16.1-23.17.0-13.18.0-13.19.1-13.20.0-13.20.2-13.20.3-13.24.3-13.25.0-13.25.2-13.29.0-13.29.4-13.29.5-13.29.7-13.32.0-13.32.2-13.32.4-13.32.4-23.32.5-13.32.6-13.9.0-13.9.0-1+deb12u14.0.1-14.0.12-14.1.1-14.2.10-14.2.8-14.3.1-1 | None listed |
python-filelockDebian:13 | All versions, plus listed versions 3.18.0-13.18.0-1+deb13u13.19.1-13.20.0-13.20.2-1 Show 20 more versionsShow less3.20.3-13.24.3-13.25.0-13.25.2-13.29.0-13.29.4-13.29.5-13.29.7-13.32.0-13.32.2-13.32.4-13.32.4-23.32.5-13.32.6-14.0.1-14.0.12-14.1.1-14.2.10-14.2.8-14.3.1-1 | None listed |
python-filelockDebian:14 | before 4.3.1-1, plus listed versions 3.18.0-13.19.1-13.20.0-13.20.2-13.20.3-1 Show 18 more versionsShow less3.24.3-13.25.0-13.25.2-13.29.0-13.29.4-13.29.5-13.29.7-13.32.0-13.32.2-13.32.4-13.32.4-23.32.5-13.32.6-14.0.1-14.0.12-14.1.1-14.2.10-14.2.8-1 | 4.3.1-1 |
Products 1
Sources
CVE List Score usedCVSS 3.14.4
filelock: ReadWriteLock can overwrite victim-owned files through a directory swap
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on POSIX, another account with rename access in a shared, non-sticky lock directory can redirect a SQLite-backed ReadWriteLock operation to a file writable by the locking process. A cross-account overwrite was confirmed on Linux. The affected setup also required a victim-owned directory that the other account could previously read. This issue is fixed in version 4.3.0.
- Record
CVE-2026-144395- CVSS 3.1
- 4.4 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-367
- Updated
- 2026-12-03
EUVDEUVD-2026-143615CVSS 3.14.4
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on POSIX, another account with rename access in a shared, non-sticky lock directory can redirect a SQLite-backed ReadWriteLock operation to a file writable by the locking process. A cross-account overwrite was confirmed on Linux. The affected setup also required a victim-owned directory that the other account could previously read. This issue is fixed in version 4.3.0.
- Record
EUVD-2026-143615- CVSS 3.1
- 4.4 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N - Updated
- 2026-12-03
GitHub AdvisoriesGHSA-22wc-j8c9-7gxgCVSS 3.14.4
filelock: ReadWriteLock can overwrite victim-owned files through a directory swap
Impact
On POSIX, another account with rename access in a shared, non-sticky lock directory can redirect a SQLite-backed ReadWriteLock operation to a file writable by the locking process. A cross-account overwrite was confirmed on Linux. The affected setup also required a victim-owned directory that the other account could previously read.
Affected version and mitigation
The confirmed affected release is filelock 4.2.12. Upgrade to 4.3.0 or later.
Filelock now creates the final database link inside a fresh owner-only directory, verifies its permissions and requires the link to exist when SQLite opens it. Upgrade every process sharing the database before resuming operations. Until then, keep its parent writable only by the locking account or use a sticky shared parent. Fix in PR #1096.
Credits
OSS Scanner: ANT-2026-XYOWG885.
- Record
GHSA-22wc-j8c9-7gxg- CVSS 3.1
- 4.4 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-367
- Updated
- 2026-12-04
NVDCVSS 3.14.4
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on POSIX, another account with rename access in a shared, non-sticky lock directory can redirect a SQLite-backed ReadWriteLock operation to a file writable by the locking process. A cross-account overwrite was confirmed on Linux. The affected setup also required a victim-owned directory that the other account could previously read. This issue is fixed in version 4.3.0.
- Record
CVE-2026-144395- CVSS 3.1
- 4.4 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-367
- Updated
- 2026-12-03
OSVCVSS 3.14.4
filelock: ReadWriteLock can overwrite victim-owned files through a directory swap
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on POSIX, another account with rename access in a shared, non-sticky lock directory can redirect a SQLite-backed ReadWriteLock operation to a file writable by the locking process. A cross-account overwrite was confirmed on Linux. The affected setup also required a victim-owned directory that the other account could previously read. This issue is fixed in version 4.3.0.
- Record
CVE-2026-144395- CVSS 3.1
- 4.4 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N - Weakness
- CWE-367
- Updated
- 2026-12-04
OSVDEBIAN-CVE-2026-144395CVSS 3.14.4
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on POSIX, another account with rename access in a shared, non-sticky lock directory can redirect a SQLite-backed ReadWriteLock operation to a file writable by the locking process. A cross-account overwrite was confirmed on Linux. The affected setup also required a victim-owned directory that the other account could previously read. This issue is fixed in version 4.3.0.
- Record
DEBIAN-CVE-2026-144395- CVSS 3.1
- 4.4 Medium
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N - Updated
- 2026-12-04
OSVAZL-118801No score
CVE-2026-144395 affecting package python-filelock 3.20.3-4
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on POSIX, another account with rename access in a shared, non-sticky lock directory can redirect a SQLite-backed ReadWriteLock operation to a file writable by the locking process. A cross-account overwrite was confirmed on Linux. The affected setup also required a victim-owned directory that the other account could previously read. This issue is fixed in version 4.3.0.
- Record
AZL-118801- Updated
- 2026-12-04
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Affected packages, references | GitHub Advisories, OSV | |
| Affected packages, other IDs, references | OSV | |
| Affected packages, other IDs, key facts, references | NVD, OSV | |
| Other IDs, references | OSV | |
| Other IDs, published date | CVE List, EUVD, NVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/tox-dev/filelock/security/advisories/GHSA-22wc-j8c9-7gxg
github.com/tox-dev/filelock/pull/1096
github.com/tox-dev/filelock/commit/d7324f591a2532e28427dae342d73680cc4cf6e7
github.com/tox-dev/filelock/releases/tag/4.3.0
nvd.nist.gov/vuln/detail/CVE-2026-144395
github.com/advisories/GHSA-22wc-j8c9-7gxg
github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144395.json
security-tracker.debian.org/tracker/CVE-2026-144395