Skip to main content
CVE-2026-112940VulnerabilityPublished

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

Affects poetrySource GCVE Database

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

Not known to be exploited · CVSS 7.1 High : upgrade to 2.5.1_1 soon.

Data as of 30 Oct 2026, 08:29 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 2.5.1_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 29 Oct 2026.

What to do

Upgrade poetry to 2.5.1_1.

Affected software

ProductAffectedFixed in
Homebrewpoetrypkg:brew/poetryOther threatsAffected
  • >=2.3.2_1 <2.5.1_1
Fixed in
  • 2.5.1_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 2.5.1_1. Users should upgrade to this version or later to remediate the vulnerability. The vulnerability requires the directory holding the lock database to be writable by other users without the sticky bit; applying proper directory permissions (e.g., enabling the sticky bit on shared directories) can mitigate the risk. No other specific mitigations are indicated. Since a patch exists, upgrading is the recommended action.

Description

The filelock ReadWriteLock and AsyncReadWriteLock components use SQLite databases for locking but pass SQLite a filename they do not fully control. On Linux, SQLite reopens the lock database by name via /proc/self/fd, following symlinks and acting on side files like -journal, -wal, and -shm. A local attacker who can create or rename files in the directory holding the lock database (a writable directory without the sticky bit) can exploit this to cause the lock user to write arbitrary data into their own files, create or unlink files, or cause lock acquisition failures. This affects filelock versions 3.20.4 through 4.2.0, with the fixed version being 2.5.1_1 for poetry. The vulnerability requires local access and specific directory permissions to exploit.

References

Community reviews

Loading reviews…