CVE Explorer
CVE-2026-22701
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 c
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
1
Preserved source conflicts
No provider value was silently selected as the winner.
cwe · 3 assertions
{"cweId":"CWE-367","description":"CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:819cf77f434797c4a6435e3c2390cabdb72a62eafb75a79de70929e8b7cf11e5 · sha256:c06900b2bf5ad2d8… · /containers/cna/problemTypes/2/descriptions/0
{"cweId":"CWE-362","description":"CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:819cf77f434797c4a6435e3c2390cabdb72a62eafb75a79de70929e8b7cf11e5 · sha256:c06900b2bf5ad2d8… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-59","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:819cf77f434797c4a6435e3c2390cabdb72a62eafb75a79de70929e8b7cf11e5 · sha256:c06900b2bf5ad2d8… · /containers/cna/problemTypes/0/descriptions/0
Affected products and versions
1 source assertion{"product":"filelock","vendor":"tox-dev","versions":[{"status":"affected","version":"< 3.20.3"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:819cf77f434797c4a6435e3c2390cabdb72a62eafb75a79de70929e8b7cf11e5 · sha256:c06900b2bf5ad2d8… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"HIGH","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:819cf77f434797c4a6435e3c2390cabdb72a62eafb75a79de70929e8b7cf11e5 · sha256:c06900b2bf5ad2d8… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
3 source assertions{"cweId":"CWE-367","description":"CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:819cf77f434797c4a6435e3c2390cabdb72a62eafb75a79de70929e8b7cf11e5 · sha256:c06900b2bf5ad2d8… · /containers/cna/problemTypes/2/descriptions/0
{"cweId":"CWE-362","description":"CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:819cf77f434797c4a6435e3c2390cabdb72a62eafb75a79de70929e8b7cf11e5 · sha256:c06900b2bf5ad2d8… · /containers/cna/problemTypes/1/descriptions/0
{"cweId":"CWE-59","description":"CWE-59: Improper Link Resolution Before File Access ('Link Following')","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:819cf77f434797c4a6435e3c2390cabdb72a62eafb75a79de70929e8b7cf11e5 · sha256:c06900b2bf5ad2d8… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"name":"https://github.com/tox-dev/filelock/commit/255ed068bc85d1ef406e50a135e1459170dd1bf0","tags":["x_refsource_MISC"],"url":"https://github.com/tox-dev/filelock/commit/255ed068bc85d1ef406e50a135e1459170dd1bf0"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:819cf77f434797c4a6435e3c2390cabdb72a62eafb75a79de70929e8b7cf11e5 · sha256:c06900b2bf5ad2d8… · /containers/cna/references/1
{"name":"https://github.com/tox-dev/filelock/commit/41b42dd2c72aecf7da83dbda5903b8087dddc4d5","tags":["x_refsource_MISC"],"url":"https://github.com/tox-dev/filelock/commit/41b42dd2c72aecf7da83dbda5903b8087dddc4d5"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:819cf77f434797c4a6435e3c2390cabdb72a62eafb75a79de70929e8b7cf11e5 · sha256:c06900b2bf5ad2d8… · /containers/cna/references/2
{"name":"https://github.com/tox-dev/filelock/security/advisories/GHSA-qmgc-5h2g-mvrw","tags":["x_refsource_CONFIRM"],"url":"https://github.com/tox-dev/filelock/security/advisories/GHSA-qmgc-5h2g-mvrw"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:819cf77f434797c4a6435e3c2390cabdb72a62eafb75a79de70929e8b7cf11e5 · sha256:c06900b2bf5ad2d8… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.