filelock: ReadWriteLock follows a symlink at the lock path into SQLite (tox-dev filelock)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.23 % Β· percentile 14 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Analyzed
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.
Weaknesses (CWE)
- CWE-59 β Improper Link Resolution Before File Access
- CWE-668 β Exposure of Resource to Wrong Sphere
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L | GitHub_M |
| CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L | NVD Β· security-advisories@github.com (Secondary) |
Advisories
- GHSA-j8f7-rjxc-mr56 β filelock: ReadWriteLock follows a symlink at the lock path into SQLite
European references
- ENISA EUVD Β· EUVD-2026-105026
- GCVE Β· GCVE-0-2026-112936
Affected configurations (NVD CPE)
cpe:2.3:a:tox-dev:filelock:*:*:*:*:*:python:*:*β₯ 3.20.4 < 4.0.9
Affected products
| Product | Versions |
|---|---|
| tox-dev Β· filelock | affected >= 3.20.4, < 4.0.9 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST β attribution requested |
| ENISA EUVD | ENISA β reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain β this product uses data from the NVD API but is not endorsed or certified by the NVD |