GHSA-gvhc-qmqx-22pq

Suggest an improvement
Source
https://github.com/advisories/GHSA-gvhc-qmqx-22pq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-gvhc-qmqx-22pq/GHSA-gvhc-qmqx-22pq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gvhc-qmqx-22pq
Aliases
Published
2026-12-04T22:42:12Z
Modified
2026-12-05T18:48:25Z
Severity
  • 3.6 (Low) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:L CVSS Calculator
Summary
filelock: SoftFileLock recovery can admit two holders through a live break name
Details

Impact

On POSIX filesystems with atomic name exchange, SoftFileLock can misidentify an active recovery record as abandoned. If another local account can create markers in the shared sticky lock directory, racing recoveries can let two holders enter the same critical section.

Affected versions and fix

Versions 4.2.1 through 4.2.12 are affected. Upgrade to filelock 4.3.0 or later. Recovery leaves a break record in place while the process identified by its name is running. PID reuse can therefore delay cleanup. PR #974

Workaround

Keep the lock in a directory writable only by trusted participants.

Credits

Reported by OSS Scanner (ANT-2026-01PM0HYF).

Database specific
{
    "cwe_ids":  [
        "CWE-345"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-12-04T22:42:12Z",
    "nvd_published_at":  "2026-12-03T19:17:32Z",
    "severity":  "LOW"
}
References

Affected packages

PyPI / filelock

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.2.1
Fixed
4.3.0

Affected versions

4.*
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.7
4.2.8
4.2.9
4.2.10
4.2.11
4.2.12

Database specific

last_known_affected_version_range
"<= 4.2.12"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-gvhc-qmqx-22pq/GHSA-gvhc-qmqx-22pq.json"