Skip to main content
CVE-2026-112940VulnerabilityPublished Updated

gptline · filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock

Affects gptlineSource GCVE Database

0
Compare
Authoritative record:CVE-2026-112940· High 7.1

Not known to be exploited · CVSS 7.1 High : upgrade to 1.0.8_25 soon.

Data as of 4 Dec 2026, 20:14 UTC

CVSS 3.1 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.17.1
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 20 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Homebrewgptlinepkg:brew/gptlineOther threatsAffected
  • >=1.0.8_14 <1.0.8_25
Fixed in
  • 1.0.8_25
PyPIfilelockpkg:pypi/filelockOther threatsAffected
  • 3.20.4 – 4.2.0
  • >=3.20.4 <4.2.1
53 affected builds
Fixed in
  • 4.2.1

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. Additionally, restricting directory permissions to prevent untrusted users from creating or renaming files in the lock database directory (e.g., using sticky bits on shared directories) mitigates the attack. Linux kernel settings such as fs.protected_regular and fs.protected_hardlinks also reduce risk by preventing unauthorized file opens and hard links in sticky directories.

Description

The filelock ReadWriteLock and AsyncReadWriteLock components use SQLite databases for locking, but they pass SQLite a filename that the user does not control. On Linux, SQLite reopens the lock database by name via /proc/self/fd, following symlinks and acting on side files such as -journal, -wal, and -shm. This allows a local attacker with write permissions in the lock database directory (a non-sticky, writable directory) to manipulate these files, causing the lock user to overwrite or unlink files with their privileges or cause lock acquisition failures. The vulnerability affects filelock versions 3.20.4 through 4.2.0, with the /proc/self/fd redirect introduced in 4.0.9 and side-file variants since 3.20.4. The CVSS score is 7.1 (High).

References

Community reviews

Loading reviews…