CVE-2026-22701Tox-dev Filelock
Medium 5.3
Follow: this CVE · Tox-dev · Tox-dev Filelock We alert you by email or Slack (account required).
- Priority
- 32
- CVSS 3.1
- 5.3
- EPSS
- —
- Auth required
- Yes
- Published
- Jan 10, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H
What happens
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 symlinks can exploit a race condition between the permission validation and file creation to cause lock operations to fail or behave unexpectedly. The vulnerability occurs in the _acquire() method between raise_on_not_writable_file() (permission check) and os.open() (file creation). During this race window, an attacker can create a symlink at the lock file path, potentially causing the lock to operate on an unintended target file or leading to denial of service. This issue has been patched in version 3.20.3.
What to do
- Apply the vendor's security update for Filelock.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | filelock |
< 3.20.3 |
3.20.3 |
pip install "filelock>=3.20.3" |
| PyPI | filelock |
< 3.20.3 |
3.20.3 |
pip install "filelock>=3.20.3" |
Per OSV / GitHub Advisories (GHSA-qmgc-5h2g-mvrw, PYSEC-2026-1374). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| tox-dev | filelock | < 3.20.3 |
Official advisories
- Security update for python-filelock · SUSE · SUSE-SU-2026:20216-1 · Jan 30, 2026 Medium
- Security update for python-filelock · SUSE · openSUSE-SU-2026:20144-1 · Jan 30, 2026 Medium
- Security update for python-filelock · SUSE · SUSE-SU-2026:0335-1 · Jan 29, 2026 Medium
Also: SUSE (+2)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Patch
- github.com Mitigation Patch Vendor Advisory