MEDIUMCVSS 5.3Vulnerability

CVE-2026-112908

`StrictSoftFileLock` and `AsyncStrictSoftFileLock` apply the caller's `mode` to the sentinel (the lock file at `<path>`) and to both claim files (the files whose presence says a process wants or holds the lock). They create the two directories that hold the claims, `<path>.filelock` and `<path>.filelock/claims`, with a bare `mkdir()`. That gives `0o777` filtered through the umask (a per-process mask that removes permission bits from new files and directories) or, under a parent with a default ACL (an access control list on a directory that sets the permissions of entries created inside it), through that ACL. A hold consists of two claim names in that directory, which has no sticky bit (a directory flag that lets only a file's owner remove it). When the environment leaves another local user (the other user below) a write bit on the directory, that user can unlink the holder's `0600` claims. Three settings do this: umask `000` in a sticky directory such as `/tmp`, umask `002` with the other user in the directory's group, or a default ACL on the lock's parent that grants the group write (the kernel then ignores the umask). After the unlink, the next contender of the holder's account finds the directory empty and enters. The first holder keeps reporting `is_locked == True` and later releases with no error. Affected versions: filelock >= 3.30.0 and <= 4.2.0 (finding `ANT-2026-AD6SUOON`). ## Severity **CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L, 5.3 (Medium).** `AV:L` (local): the other user needs an account on the same host. `AC:H` (high attack complexity): the holder must pass a restrictive `mode` while its umask or the parent's default ACL leaves the other user a write bit on new directories, and a contender of the holder's account must ask for the lock after the claims are gone. With the common umask `022` and no default ACL the directories are `0755`, and the kernel refuses the other user's unlink. `PR:L` (low privileges): an unprivileged account is enough. `UI

Properties

Severity
medium
Summary
filelock: StrictSoftFileLock creates its claim directories without the lock mode, so another local user with a write bit on them can end a live hold
Cvss score
5.3
Retrieved at
2026-10-28T23:45:48+00:00
Ghsa published
2026-10-28T21:09:04Z
Source url
https://github.com/advisories/GHSA-6627-m3xw-93mp
Ghsa updated
2026-10-28T21:09:05Z
Ghsa id
GHSA-6627-m3xw-93mp
Last source
GitHub Advisory Database
Cve id
CVE-2026-112908
Cvss vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L
First seen by Signal
2026-10-28T23:45:48+00:00
Is ghsa only
false

Related Entities (3)

AFFECTS (1)

→[Software]pip/filelock

VULNERABLE_TO (1)

←[Software]pip/filelock

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-112908 (CVSS 5.3) — Ninja Signal Threat Intelligence | Ninja Signal