Skip to content
OpenAdvisories
Medium SUSE-SU-2026:0220-1 2 CVEs

Security update for python-filelock

Published Jan 22, 2026 · Updated Mar 23, 2026

Summary

This update for python-filelock fixes the following issues:

- CVE-2025-68146: TOCTOU race condition may allow local attackers to corrupt or truncate arbitrary user files (bsc#1255244).
- CVE-2026-22701: TOCTOU race condition in the SoftFileLock implementation (bsc#1256457).

Fixed packages 2

ReleasePackageFixed in
openSUSE · Leap 15.6 python-filelock 3.12.2-150400.10.8.1
SUSE · SLES 3 Linux Enterprise Module for Python 3 15 SP7 python-filelock 3.12.2-150400.10.8.1

Vulnerabilities 2

  • Medium 6.3

    filelock has TOCTOU race condition that 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 b…

  • Medium 5.3

    filelock Time-of-Check-Time-of-Use (TOCTOU) Symlink Vulnerability in SoftFileLock

    filelock is a platform-independent file lock for Python. Prior to version 3.20.3, a TOCTOU race condition vulnerability exists in the SoftFileLock implementation of the filelock package. An attacker with local filesystem access and permission to create symlin…

References

  • report
    https://bugzilla.suse.com/1255244
  • report
    https://bugzilla.suse.com/1256457
  • web
    https://www.suse.com/security/cve/CVE-2025-68146
  • web
    https://www.suse.com/security/cve/CVE-2026-22701