Skip to content
OpenAdvisories
Medium · 6.1 CVE-2026-112909 EUVD-2026-105017GHSA-69hj-f68j-2879

filelock: UnixFileLock truncates and chmods any regular file another user renames or hard-links onto the lock path

Published Oct 20, 2026 · Updated Oct 22, 2026 · Assigned by GitHub_M

Description

filelock is a platform-independent file lock for Python. Prior to 4.2.1, UnixFileLock can truncate a regular file renamed onto the lock path when another local user has actual rename permission, or hard-linked there under a permissive hard-link policy; when an explicit mode is requested, affected versions from 3.10.2 can also change that file's mode. This issue is fixed in version 4.2.1.

Affected products

VendorProductAffectedFixed
tox-dev filelock < 4.2.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-filelock 4.2.8-1 —
Debian 13 python-filelock No fix yet —
Debian 12 python-filelock No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-filelock No fix yet —
Ubuntu 26.04 LTS python-filelock No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS python-filelock No fix yet —
Ubuntu Pro 22.04 LTS python-filelock No fix yet —
Ubuntu Pro 20.04 LTS python-filelock No fix yet —
Ubuntu Pro 18.04 LTS python-filelock No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-filelock 4.2.4-1.1 openSUSE-SU-2026:12371-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-filelock No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling py3.10-filelock No fix yet —
Wolfi rolling superset-6.1 6.1.0-r23 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI filelock < 4.2.1 4.2.1 GHSA-69hj-f68j-2879

Advisories 1

References