{"id":"CVE-2026-144386","aliases":["AZL-118777","DEBIAN-CVE-2026-144386","EUVD-2026-143602","GHSA-x3f4-g3q6-f985"],"status":"published","title":"filelock: SoftReadWriteLock heartbeat overwrites victim-owned files after inode reuse","description":"filelock is a platform-independent file lock for Python. Prior to 4.3.0, a SoftReadWriteLock heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4. This issue is fixed in version 4.3.0.","severity":{"version":"3.1","score":2.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-12-04","score":0.00162,"percentile":0.05601,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-367"],"published":"2026-12-03T19:06:45Z","modified":"2026-12-04T22:43:15Z","fixes":[{"ecosystem":"PyPI","package":"filelock","fixed_in":["4.3.0"],"sources":["ghsa"]},{"ecosystem":"Debian:14","package":"python-filelock","fixed_in":["4.3.1-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"filelock","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.0"}]}]},{"source":"osv","ecosystem":"Azure Linux:3","package":"python-filelock","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.20.3-4"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"python-filelock","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.12.2-1","3.12.3-1","3.12.4-1","3.13.1-1","3.13.3-1","3.13.4-1","3.14.0-1","3.15.4-1","3.16.1-1","3.16.1-2","3.17.0-1","3.18.0-1","3.19.1-1","3.20.0-1","3.20.2-1","3.20.3-1","3.24.3-1","3.25.0-1","3.25.2-1","3.29.0-1","3.29.4-1","3.29.5-1","3.29.7-1","3.32.0-1","3.32.2-1","3.32.4-1","3.32.4-2","3.32.5-1","3.32.6-1","3.9.0-1","3.9.0-1+deb12u1","4.0.1-1","4.0.12-1","4.1.1-1","4.2.10-1","4.2.8-1","4.3.1-1"]},{"source":"osv","ecosystem":"Debian:13","package":"python-filelock","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.18.0-1","3.18.0-1+deb13u1","3.19.1-1","3.20.0-1","3.20.2-1","3.20.3-1","3.24.3-1","3.25.0-1","3.25.2-1","3.29.0-1","3.29.4-1","3.29.5-1","3.29.7-1","3.32.0-1","3.32.2-1","3.32.4-1","3.32.4-2","3.32.5-1","3.32.6-1","4.0.1-1","4.0.12-1","4.1.1-1","4.2.10-1","4.2.8-1","4.3.1-1"]},{"source":"osv","ecosystem":"Debian:14","package":"python-filelock","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.3.1-1"}]}],"versions":["3.18.0-1","3.19.1-1","3.20.0-1","3.20.2-1","3.20.3-1","3.24.3-1","3.25.0-1","3.25.2-1","3.29.0-1","3.29.4-1","3.29.5-1","3.29.7-1","3.32.0-1","3.32.2-1","3.32.4-1","3.32.4-2","3.32.5-1","3.32.6-1","4.0.1-1","4.0.12-1","4.1.1-1","4.2.10-1","4.2.8-1"]}],"products":[{"vendor":"tox-dev","product":"filelock"}],"references":[{"url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-x3f4-g3q6-f985","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/tox-dev/filelock/pull/982","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/tox-dev/filelock/commit/184931a64dd221e68f41586bcab91a2f9e59b419","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/tox-dev/filelock/releases/tag/4.3.0","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-144386","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-x3f4-g3q6-f985"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144386.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-144386","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2026-144386","title":"filelock: SoftReadWriteLock heartbeat overwrites victim-owned files after inode reuse","description":"filelock is a platform-independent file lock for Python. Prior to 4.3.0, a SoftReadWriteLock heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4. This issue is fixed in version 4.3.0.","status":"published","published":"2026-12-03T19:06:45.02Z","modified":"2026-12-03T19:06:45.02Z","cvss":[{"version":"3.1","score":2.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"low","assessor":"cna"}],"cwes":["CWE-367"],"updated_at":"2026-12-03T19:12:46.084942Z"}],"euvd":[{"id":"EUVD-2026-143602","description":"filelock is a platform-independent file lock for Python. Prior to 4.3.0, a SoftReadWriteLock heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4. This issue is fixed in version 4.3.0.","status":"published","published":"2026-12-03T19:06:45Z","modified":"2026-12-03T19:06:45Z","cvss":[{"version":"3.1","score":2.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"low"}],"updated_at":"2026-12-03T20:34:19.386759Z"}],"ghsa":[{"id":"GHSA-x3f4-g3q6-f985","title":"filelock: SoftReadWriteLock heartbeat overwrites victim-owned files after inode reuse","description":"## Impact\n\nA `SoftReadWriteLock` heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4.\n\n## Affected versions and fix\n\nThe confirmed affected version is 4.2.12. Upgrade to filelock `4.3.0` or later. The heartbeat verifies the holder token on the open descriptor before writing. A mismatch marks the hold as lost. The fix does not protect a lock directory that another account can replace. [PR #982](https://github.com/tox-dev/filelock/pull/982)\n\n## Workaround\n\nKeep the lock and its records in a directory where only trusted accounts can rename entries.\n\n## Credits\n\nReported by OSS Scanner (ANT-2026-CC0VMGLC).","status":"published","published":"2026-12-04T22:43:14Z","modified":"2026-12-04T22:43:15Z","cvss":[{"version":"3.1","score":2.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"low"}],"cwes":["CWE-367"],"updated_at":"2026-12-04T22:59:48.349285Z"}],"nvd":[{"id":"CVE-2026-144386","description":"filelock is a platform-independent file lock for Python. Prior to 4.3.0, a SoftReadWriteLock heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4. This issue is fixed in version 4.3.0.","status":"published","published":"2026-12-03T19:17:34.44Z","modified":"2026-12-04T15:47:41.367Z","cvss":[{"version":"3.1","score":2.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"low","assessor":"secondary"}],"cwes":["CWE-367"],"updated_at":"2026-12-03T19:19:37.203737Z"}],"osv":[{"id":"CVE-2026-144386","title":"filelock: SoftReadWriteLock heartbeat overwrites victim-owned files after inode reuse","description":"filelock is a platform-independent file lock for Python. Prior to 4.3.0, a SoftReadWriteLock heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4. This issue is fixed in version 4.3.0.","status":"published","published":"2026-12-03T19:06:45.02Z","modified":"2026-12-04T21:02:47.110905116Z","cvss":[{"version":"3.1","score":2.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"low"}],"cwes":["CWE-367"],"updated_at":"2026-12-04T21:27:50.529822Z"},{"id":"DEBIAN-CVE-2026-144386","upstream":["CVE-2026-144386"],"description":"filelock is a platform-independent file lock for Python. Prior to 4.3.0, a SoftReadWriteLock heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4. This issue is fixed in version 4.3.0.","status":"published","published":"2026-12-03T19:17:34.44Z","modified":"2026-12-04T15:00:06.86239671Z","cvss":[{"version":"3.1","score":2.5,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N","level":"low"}],"updated_at":"2026-12-04T15:16:25.198776Z"},{"id":"AZL-118777","upstream":["CVE-2026-144386"],"title":"CVE-2026-144386 affecting package python-filelock 3.20.3-4","description":"filelock is a platform-independent file lock for Python. Prior to 4.3.0, a SoftReadWriteLock heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4. This issue is fixed in version 4.3.0.","status":"published","published":"2026-12-03T19:17:34Z","modified":"2026-12-04T14:18:40.74602495Z","updated_at":"2026-12-04T14:45:54.674762Z"}]}}
