gptline · filelock: ReadWriteLock on the hard-link route deletes any directory another user renames onto its .filelock-* link
Affects gptlineSource GCVE Database
Not known to be exploited · CVSS 6.1 Medium : upgrade to 1.0.8_25 when convenient.
Data as of 4 Dec 2026, 20:15 UTC
- Patch
- Available – fixed in 1.0.8_25, 4.2.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:LExploitation evidence
Disclosed: evidence found.
CVE published 20 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Dec 2026.
What to do
Upgrade gptline to 1.0.8_25; filelock to 4.2.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewgptlinepkg:brew/gptlineOther threats | Affected
| Fixed in
|
PyPIfilelockpkg:pypi/filelockOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in filelock version 1.0.8_25. Users should upgrade to this version or later to remediate the vulnerability. The vulnerability is mitigated by ensuring that the parent directory of the lock database is not writable by other users or has the sticky bit set, preventing unauthorized renames. Stock Linux systems with /proc mounted are not affected. No additional action is required once the patch is applied or the directory permissions are corrected.
Description
A vulnerability in filelock's ReadWriteLock and AsyncReadWriteLock components allows a local user with write permission on the lock database's parent directory to rename directories onto the private .filelock-* link directories. This causes the lock user's process to recursively delete the renamed directory tree with the lock user's permissions without error. This affects filelock versions 4.1.0 through 4.2.0 on macOS since 4.1.1 and POSIX systems without a usable /proc/self/fd, such as chroot or containers without /proc. The vulnerability requires a non-sticky, writable parent directory and local user access. The issue is fixed in version 1.0.8_25.
References
- github.com/tox-dev/filelock/security/advisories/GHSA-jqc4-5cvw-7w85 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-112937 (opens in a new tab)
- github.com/tox-dev/filelock/pull/834 (opens in a new tab)
- github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2d (opens in a new tab)
- github.com/tox-dev/filelock (opens in a new tab)
- github.com/tox-dev/filelock/releases/tag/4.2.1 (opens in a new tab)