CVE-2026-112906: filelock: SoftFileLock evicts a fresh lock file whose watched age another local user's pre-dated file passed on through inode reuse

Published Oct 20, 2026
·
Updated

filelock is a platform-independent file lock for Python. From 4.1.0 until 4.2.1, SoftFileLock versions from 4.1.0 can reuse a stale observation when an attacker pre-dates and removes its own marker, at least two lock-user processes are waiting, coarse or matching modification times preserve the observation, and an honest contender creates a fresh marker on the reused inode, causing that live marker to be removed as stale. This issue is fixed in version 4.2.1.

Affected Software

1 affected component
pypi/filelock>=4.1.0, <4.2.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade filelock to a version that resolves this vulnerability.

    Fixed in 4.2.1

Event History

Oct 20, 2026
CVE Published
via MITRE·02:09 PM
Data Sourced
via MITRE·02:09 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Deployments using filelock's SoftFileLock in versions 4.1.0 through before 4.2.1 are affected. Exploitation requires multiple local lock-user processes and conditions that allow a stale inode observation to be reused.

2

What access and conditions does an attacker need?

An attacker needs local access and low-privilege ability to create and remove their own lock marker. They must pre-date and remove that marker, have at least two lock-user processes waiting, and rely on coarse or matching modification times plus inode reuse when an honest process creates a fresh marker.

3

What is the impact if exploitation succeeds?

A fresh, live lock marker created by an honest contender can be removed as though it were stale. This can undermine the intended locking behavior and allow an attacker to affect integrity of operations guarded by the lock.

4

What should teams do?

Upgrade filelock to version 4.2.1, which fixes the issue. The provided data does not specify a workaround for deployments that cannot immediately upgrade.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203