Description
filelock is a platform-independent file lock for Python. From 3.20.4 until 4.0.9, ReadWriteLock and AsyncReadWriteLock versions from 3.20.4 resolve the lock path and pass it to SQLite without rejecting a final symbolic link, allowing another local user who can create names in the lock directory to redirect database creation and locking or split mutual exclusion between targets. This issue is fixed in version 4.0.9.
Severity (CVSS)
| Base score | 6.1 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L |
| Provided by | CNA |
Weaknesses
- CWE-59 — CWE-59: Improper Link Resolution Before File Access ('Link Following')
- CWE-668 — CWE-668: Exposure of Resource to Wrong Sphere
Affected products
| Vendor | Product | Versions |
|---|---|---|
| tox-dev | filelock | >= 3.20.4, < 4.0.9 [affected] |
References
- https://github.com/tox-dev/filelock/security/advisories/GHSA-j8f7-rjxc-mr56 (x_refsource_CONFIRM)
- https://github.com/tox-dev/filelock/commit/4d45e83caf7e31f9a12fb44526bdc07f70114f04 (x_refsource_MISC)
- https://github.com/tox-dev/filelock/releases/tag/4.0.9 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 21 Oct 2026 07:04 UTC.