hatch · filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock
Affects hatchSource GCVE Database
Not known to be exploited · CVSS 7.1 High : upgrade to 1.18.1_2 soon.
Data as of 27 Oct 2026, 23:27 UTC
- Patch
- Available – fixed in 1.18.1_2
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 20 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: 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 26 Oct 2026.
What to do
Upgrade hatch to 1.18.1_2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewhatchpkg:brew/hatchOther 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 patch is available in filelock version 1.18.1_2 that addresses this vulnerability. Users should upgrade to this fixed version. Additionally, ensuring that the directory containing the lock database is not writable by untrusted users or has the sticky bit set (e.g., 1777 permissions for shared directories) mitigates the risk. Kernel settings such as fs.protected_regular and fs.protected_hardlinks can further reduce exposure. No other actions are required if the patch is applied.
Description
A vulnerability in filelock's ReadWriteLock and AsyncReadWriteLock components allows a local user with write permissions in the directory containing the lock database to exploit SQLite's behavior of reopening lock files by name, following symlinks and acting on side files like -journal, -wal, and -shm. This can lead to the attacker writing arbitrary data into the lock user's files, creating or unlinking files, or causing lock acquisition failures. The issue affects filelock versions 3.20.4 through 4.2.0, with fixes available in version 1.18.1_2. The vulnerability requires specific directory permissions (non-sticky, writable by the attacker) and local access. It has a CVSS 3.1 score of 7.1 (High) with no confidentiality impact but high integrity and availability impacts.
References
- github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-112940 (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)