CVE-2026-112912: filelock: Symlink swap during SoftFileLock's writability check leaks whether a path exists and is writable by the lock taker

Published Oct 20, 2026
·
Updated

filelock is a platform-independent file lock for Python. From 3.32.6 until 4.2.1, SoftFileLock can follow a swapped symbolic link during the conditional os.access writability check for a node without its owner-write bit, allowing another local user on a platform and directory configuration that follows the link to infer whether a chosen path exists and is writable from the observable acquisition result. This issue is fixed in version 4.2.1.

Affected Software

1 affected component
pypi/filelock>=3.32.6<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:23 PM
Data Sourced
via MITRE·02:23 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·03:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are realistically exposed?

Deployments using SoftFileLock in filelock versions from 3.32.6 through versions before 4.2.1 may be affected. Exploitation also depends on a local platform and directory configuration that follows the swapped symbolic link.

2

What does an attacker need to exploit this issue?

The attacker needs local access and must be able to swap a symbolic link during SoftFileLock's conditional os.access writability check. The affected node must lack its owner-write bit.

3

What can an attacker learn?

An attacker can infer whether a chosen path exists and is writable by the lock taker, based on the observable lock acquisition result. The provided information does not indicate integrity or availability impact.

4

What should be done to remediate the issue?

Upgrade filelock to version 4.2.1, which fixes the issue.

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