Skip to main content

filelock CVE-2026-112910

MEDIUM
Incorrect Permission Assignment for Critical Resource (CWE-732)
2026-10-28 https://github.com/tox-dev/filelock GHSA-8mx5-7m5m-r77g
5.3
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local logon as ordinary account
  2. Exploit
    Open 0o600 lock file or ReadWriteLock DB via inherited directory ACL
  3. Execution
    Take byte-range lock or read preserved holder metadata
  4. Impact
    Stall owner's acquire()/Timeout and disclose or corrupt lock state

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Permission assignment review
Exploitation Conditions

Exploitable only on Windows against filelock 3.10.0 through 4.2.0 using FileLock/AsyncFileLock (WindowsFileLock) or the ReadWriteLock/AsyncReadWriteLock SQLite database. Concrete prerequisites: (1) the caller passes a mode without group/other bits such as mode=0o600 expecting cross-account protection, or uses the ReadWriteLock database (always requested as 0o600); (2) the lock directory has inheritable ((OI)(CI)) ACL entries that grant another local account read - or, for write/corruption impact, modify - access to newly created files (for example a service data directory readable by Users); and (3) the attacker holds a local interactive or service logon on the same host as an ordinary unprivileged account. For holder-metadata disclosure, preserve_lock_file=True with an on_acquired hook that writes metadata is needed (the lock file then persists after release); the ReadWriteLock database is never unlinked and is always exposed. Limiting factors that reduce real-world risk: this is local-only (no network vector), requires a second local account, and is neutralized entirely when the lock directory's ACL already excludes other accounts (such as a path inside the user profile, or a directory with inheritance disabled granting only owner/SYSTEM/Administrators). Unix is not affected, and inter-process mutual exclusion is never broken.

Impact

Signals are mostly low-to-moderate and broadly consistent. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L = 5.3 Medium) marks this as a local, low-privilege issue requiring an ordinary logon on the same host - not a remote or network-exposed flaw. No EPSS score, no CISA KEV entry, and no weaponized exploit are present in the input; the only artifact is a scanner reproducer that demonstrates the dropped mode via Win32 call tracing on Linux (ACL effect inferred), later confirmed on Windows 11 by maintainers with two local accounts. The vuln.today decision label is 'this_month', indicating a scheduled-remediation priority rather than an emergency. The real-world risk is genuine but tightly bounded: it only matters on Windows, only for filelock 3.10.0-4.2.0, only when callers rely on mode=0o600 (or the ReadWriteLock database) for cross-account isolation, and only in a lock directory whose inheritable ACL already grants other local accounts access to new files - a non-default layout. Critically, impact is confined to the lock file and lock database (holder metadata disclosure, denial/stalling of acquire(), and corruption of the lock's own state); mutual exclusion between cooperating processes still holds, and nothing the lock protects is exposed. Treat this as a correctness/hardening fix to schedule, with higher priority on multi-user Windows hosts that place filelock locks in shared-readable directories, rather than as an active-exploitation emergency.

Exploit ScenarioDerived

A Windows service creates its filelock with mode=0o600 and preserve_lock_file=True in a data directory whose inheritable ACL grants the Users group access to new files. A standard (non-admin) local user, against whom the owner believed the mode protected the file, opens the lock file and the ReadWriteLock database, holds the byte-range lock between the owner's acquisitions so the owner's acquire() waits or times out, and reads holder metadata the on_acquired hook left behind. The scanner supplied a reproducer that demonstrates the mode being dropped (Win32 calls traced on Linux); it is not verified as working cross-account exploit code, but maintainers independently confirmed the cross-account read/write on Windows 11.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 28, 2026

Windows permission handling in the Python filelock library (3.10.0 through 4.2.0) silently drops the mode argument, so a lock file requested as mode=0o600 is created with no security descriptor of its own and instead inherits the parent directory's ACL - the same as a lock created with no mode at all; the ReadWriteLock SQLite database, always requested as 0o600, is created the same way. An authenticated local user (CVSS PR:L) on the same Windows host who inherits read or modify access through the directory's inherited entries can open the lock file or database, take the byte-range lock and make the owner's later acquire() calls wait or time out, read holder metadata written by an on_acquired hook when preserve_lock_file=True, and, where modify access is inherited, write to both files. Exposure is limited to the lock file and lock database - mutual exclusion between cooperating processes still holds, Unix is unaffected, and the issue disappears entirely when the lock directory's ACL already excludes other accounts; no CISA KEV entry or confirmed active exploitation exists, though a public reproducer accompanies the advisory, and it is not verified working exploit code (maintainers separately confirmed the behavior on Windows 11 with two local accounts).

RemediationAI

Vendor-released patch: upgrade to filelock 4.2.1, which applies an owner/SYSTEM/Administrators-only ACL to 0o600 lock files and to the ReadWriteLock database on Windows (fix PR https://github.com/tox-dev/filelock/pull/835, commit https://github.com/tox-dev/filelock/commit/e1e825b1992f69fb6b346dc395d5ae4893536c0a, release https://github.com/tox-dev/filelock/releases/tag/4.2.1). If upgrading is not immediately possible, place lock files and ReadWriteLock databases in a directory whose ACL already excludes other accounts - inside a user profile, or a directory with inheritance disabled where only the owner, SYSTEM and Administrators are granted - rather than relying on mode; the trade-off is that this only protects locks whose paths you control. For existing persistent files (a preserve_lock_file=True lock file or the ReadWriteLock database), set the ACL after creation, for example icacls <file> /inheritance:r /grant:r "<owner>:F" "SYSTEM:F" "Administrators:F", since an existing file keeps its ACL on later opens; this requires the owner to hold WRITE_DAC and must be repeated for any file recreated outside that path. Do not store confidential data in the lock file through an on_acquired hook on Windows, as it is readable by any account inheriting access to the directory.

Affected Packages

pypi filelock fix: 4.2.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is a CWE-732 (Incorrect Permission Assignment for Critical Resource) gap in filelock's Windows backend. _open_non_reparse_fd(path, mode) collapses the requested mode to a single read_only boolean (not mode & _OWNER_WRITE) and hands it to _nt_open, which builds an OBJECT_ATTRIBUTES structure with the NT path and OBJ_CASE_INSENSITIVE but leaves the SecurityDescriptor field NULL before calling NtCreateFile. Because no accepted mode ever yields read_only=True (_check_mode rejects modes lacking owner read and write, and an unset mode becomes 0o666), the boolean only ever selects FILE_ATTRIBUTE_NORMAL versus FILE_ATTRIBUTE_READONLY, and nothing ever consults the group/other bits. Under the documented NtCreateFile/OBJECT_ATTRIBUTES semantics, a NULL descriptor gives the new file default security, which on NTFS is the set of inheritable (OI)(CI) entries of the parent directory. The gap dates to commit d0061e4 (PR #192, first tag 3.10.0), which introduced the mode parameter and routed it to os.open - itself only able to apply the read-only attribute on Windows - so it is a long-standing absence of enforcement rather than a regression. UnixFileLock is not affected because it creates the file with the mode and re-applies it via fchmod. Notably, the API gives the caller no signal: lock.mode still reports 0o600 and has_explicit_mode is True, and the documentation stated that 0o600/0o700 keep other users out without a Windows caveat. The fix in 4.2.1 honors the one mode request with a Windows counterpart, creating an owner/SYSTEM/Administrators-only ACL equivalent to os.mkdir(mode=0o700) for 0o600 lock files and the ReadWriteLock database.

Know when Windows gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 5.3 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
vuln.today AI 5.3 MEDIUM

Needs a local logon (AV:L) as an ordinary account (PR:L), no race (AC:L); the inherited ACL exposes only the lock file/database for read, write, and lock-holding, giving C:L/I:L/A:L with scope unchanged.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

DescriptionGitHub Advisory

filelock on Windows ignores the mode argument. FileLock(path, mode=0o600) creates the same file as FileLock(path): one with no security descriptor of its own (the Windows record that says who may access a file). Its access list, or ACL, is whatever the lock directory hands down to new files. filelock creates the ReadWriteLock database, which it asks to be 0o600, the same way. In a directory whose inheritable ACL grants other local accounts access to new files, those accounts can open the lock file or database. They can take the byte-range lock (a lock on a span of bytes in a file) once the owner releases it and keep the owner's later acquire() calls waiting or timing out. They can read holder metadata an on_acquired hook left in a preserve_lock_file=True file. Where the directory hands down modify access, they can write to both files.

lock.mode still reports 0o600. The documentation neither promises an ACL on Windows nor says that Windows drops the mode. On Unix the same mode keeps other accounts out. Mutual exclusion between processes that follow the protocol holds on either platform. Affected versions are filelock 3.10.0 through 4.2.0 on Windows.

Anthropic's OSS Scanner reported this in private. Finding covered by this advisory:

  • ANT-2026-0KEO0DDO [medium, CWE-732]: WindowsFileLock ignores mode; 0o600 lock files inherit the directory ACL.

Severity

CVSS 3.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L scores 5.3 (Medium).

AV:L (local): the other account needs a logon on the same host. PR:L (low privileges): an ordinary account is enough. UI:N (no user interaction). AC:L (low attack complexity): no race. C:L (partial confidentiality impact): the lock file (holder metadata) and the lock database are readable where 0o600 was meant to keep them private. I:L (partial integrity impact): in the directory layout the maintainers tested, the other account can also write both files, which lets it corrupt the lock's own state but nothing the lock protects. A:L (partial availability impact): the other account can hold the byte-range lock and make the owner wait or time out. S:U (scope unchanged).

Classification from the review: Windows permission failure with security impact only where callers rely on mode=0o600 across accounts. The review had marked it an unconfirmed Windows claim, since the scanner traced stand-in Win32 calls on Linux. The maintainers have since confirmed it on Windows with two local accounts (see Evidence). The scanner rated this medium; the maintainers keep medium.

Scope and preconditions

  • The affected classes are FileLock and AsyncFileLock on Windows (WindowsFileLock), and the SQLite database of ReadWriteLock and AsyncReadWriteLock. Both go through _open_non_reparse_fd. The soft locks create their markers with os.open, which also keeps only a read-only bit of the mode on Windows; the scanner did not examine them further.
  • The directory is one that other local accounts cannot write, which the documentation already requires on Windows, but whose inheritable entries grant them read (or modify) access to new files. Examples are a service's data directory readable by Users, or any directory with (OI)(CI) entries (entries that new files and sub-directories inherit) for another account. A directory whose ACL already excludes other accounts, such as one inside a user profile, hides the problem.
  • The other account must open the file. According to the LockFileEx documentation, read access is enough to take the byte-range lock, so it can hold the lock whenever the owner does not. The lock file exists while the owner holds the lock, and stays after release with preserve_lock_file=True. The ReadWriteLock database is not unlinked at any point.
  • Unix is not affected, because UnixFileLock creates the file with the mode and repeats it with fchmod. Mutual exclusion between cooperating processes is not affected.

Affected code

Scanned commit b831496b0273: _open_non_reparse_fd reduces the mode to one read_only bit. That bit is false for every accepted mode, because _check_mode rejects any mode without owner read and write, and an unset mode becomes 0o666. In _nt_open the OBJECT_ATTRIBUTES.SecurityDescriptor field stays unassigned, and read_only only chooses FILE_ATTRIBUTE_READONLY. _open_lock_database passes 0o600 through the same function on Windows.

Introduced

d0061e4 "added multiuser support and associated tests" (#192, 2023-03-15), first tag 3.10.0 (verified), added the mode parameter and on Windows handed it to os.open, which applies only the read-only attribute. The Windows backend has applied no more of the mode than that at any version, so this is a long-standing gap rather than a regression.

Mechanism

_open_non_reparse_fd(path, mode) computes read_only = not mode & _OWNER_WRITE and calls _nt_open(path, read_only=read_only). _nt_open fills an OBJECT_ATTRIBUTES with the NT path and OBJ_CASE_INSENSITIVE and leaves SecurityDescriptor NULL. It then calls NtCreateFile with FILE_OPEN_IF and FILE_ATTRIBUTE_NORMAL (or FILE_ATTRIBUTE_READONLY when read_only, which no accepted mode produces). Nothing consults the group and other bits. Per the NtCreateFile and OBJECT_ATTRIBUTES documentation, a NULL descriptor gives the new file default security, which on NTFS is the set of inheritable entries of the parent directory. A lock file created with mode=0o600 in a directory that hands down read access to Users is therefore readable by Users.

Nothing tells the caller. The constructor validates the mode, lock.mode returns 0o600, and has_explicit_mode is True. docs/concepts.rst says "filelock creates the file with it" and that "0o600 and 0o700 keep other UIDs out", with no Windows caveat. Only the _open_non_reparse_fd docstring and a comment in _soft.py record the limitation.

Reproduction

The scanner's reproducer for ANT-2026-0KEO0DDO, quoted as received. It ran against commit b831496b0273.

repro

python
#!/usr/bin/env python3
import os
import shutil
import subprocess
import sys
import tempfile

private_job = "/tmp/repro.d/job_with_private_lock.py"
# with FileLock(path, mode=0o600)
default_job = "/tmp/repro.d/job_with_default_lock.py"
# with FileLock(path)
on_windows_backend = "/tmp/repro.d/run_on_windows_backend.py"
# prints every Win32 call filelock makes

os.umask(0o022)
locks = tempfile.mkdtemp()
# control: UnixFileLock, which leaves the lock file behind
subprocess.run([sys.executable, private_job, f"{locks}/private.lock"], check=True)
subprocess.run([sys.executable, default_job, f"{locks}/default.lock"], check=True)
unix_private_mode = os.stat(f"{locks}/private.lock").st_mode & 0o777
unix_default_mode = os.stat(f"{locks}/default.lock").st_mode & 0o777
# trigger: the same two programs on WindowsFileLock, same lock name so the call lists can be compared whole
windows_private = [sys.executable, on_windows_backend, private_job, f"{locks}/job.lock"]
windows_default = [sys.executable, on_windows_backend, default_job, f"{locks}/job.lock"]
windows_private_calls = subprocess.run(windows_private, check=True, capture_output=True, text=True).stdout.splitlines()
windows_default_calls = subprocess.run(windows_default, check=True, capture_output=True, text=True).stdout.splitlines()
shutil.rmtree(locks)
# check: mode=0o600 must reach the OS; on Windows that means a security descriptor on NtCreateFile
print(f"CONTROL  UnixFileLock FileLock(path, mode=0o600): lock file mode {unix_private_mode:#o}")
print(f"CONTROL  UnixFileLock FileLock(path):             lock file mode {unix_default_mode:#o}")
for call in windows_private_calls:
    print(f"OBSERVED WindowsFileLock FileLock(path, mode=0o600): {call}")
for call in windows_default_calls:
    print(f"OBSERVED WindowsFileLock FileLock(path):             {call}")
print(f"OBSERVED the two Win32 call lists are identical: {windows_private_calls == windows_default_calls}")

honoured_on_unix = unix_private_mode == 0o600 and unix_default_mode == 0o644
private_create = next(call for call in windows_private_calls if call.startswith("NtCreateFile("))
dropped_on_windows = (
    "ObjectAttributes.SecurityDescriptor=None" in private_create
    and windows_private_calls == windows_default_calls
)
print("BUG" if honoured_on_unix and dropped_on_windows else "OK")

repro.d/job_with_default_lock.py

python
import sys

from filelock import FileLock

with FileLock(sys.argv[1]):
    pass

repro.d/job_with_private_lock.py

python
import sys

from filelock import FileLock

with FileLock(sys.argv[1], mode=0o600):
    pass

repro.d/run_on_windows_backend.py

python
import ctypes
import fcntl
import os
import runpy
import sys
import types
# Stand-ins for the ntdll, kernel32 and msvcrt functions filelock's Windows backend calls. Each prints the call with
# the arguments filelock passed, then does the nearest Linux thing so the program runs to its end.


def RtlDosPathNameToNtPathName_U_WithStatus(dos_path, nt_name, _file_part, _relative_name):
    print(f"RtlDosPathNameToNtPathName_U_WithStatus({os.path.basename(dos_path)!r})")
    nt_name._obj.Buffer = os.path.abspath(dos_path)
    return 0
# STATUS_SUCCESS


def NtCreateFile(
    handle, access, attributes, _io_status, allocation_size, file_attributes, share, disposition, options, ea, ea_length
):
    object_attributes = attributes._obj
    print(
        f"NtCreateFile(DesiredAccess={access:#x},"
        f" ObjectAttributes.Attributes={object_attributes.Attributes:#x},"
        f" ObjectAttributes.SecurityDescriptor={object_attributes.SecurityDescriptor},"
        f" AllocationSize={allocation_size}, FileAttributes={file_attributes:#x}, ShareAccess={share:#x},"
        f" CreateDisposition={disposition}, CreateOptions={options:#x}, EaBuffer={ea}, EaLength={ea_length})"
    )
    path = object_attributes.ObjectName.contents.Buffer
    handle._obj.value = os.open(path, os.O_RDWR | os.O_CREAT | os.O_NOFOLLOW)
    return 0
# STATUS_SUCCESS


def RtlFreeUnicodeString(_nt_name):
    print("RtlFreeUnicodeString()")


def GetFileInformationByHandle(_handle, info):
    print("GetFileInformationByHandle()")
    info._obj.dwFileAttributes = 0x80
# FILE_ATTRIBUTE_NORMAL: not a reparse point
    return True


def LockFileEx(handle, flags, _reserved, bytes_low, bytes_high, _overlapped):
    print(f"LockFileEx(dwFlags={flags:#x}, nNumberOfBytesToLockLow={bytes_low}, nNumberOfBytesToLockHigh={bytes_high})")
    fcntl.flock(handle, fcntl.LOCK_EX)
    return True


def UnlockFileEx(handle, _reserved, bytes_low, bytes_high, _overlapped):
    print(f"UnlockFileEx(nNumberOfBytesToUnlockLow={bytes_low}, nNumberOfBytesToUnlockHigh={bytes_high})")
    fcntl.flock(handle, fcntl.LOCK_UN)
    return True
# only a filelock that builds a security descriptor for the lock file calls this
def ConvertStringSecurityDescriptorToSecurityDescriptorW(sddl, _revision, descriptor, _size):
    print(f"ConvertStringSecurityDescriptorToSecurityDescriptorW({sddl!r})")
    descriptor._obj.value = 1
# any address but NULL
    return True
# filelock sets argtypes on these at import; a lock taken without contention never calls them
def not_called(*_arguments):
    raise NotImplementedError


dlls = {
    "ntdll": types.SimpleNamespace(
        RtlDosPathNameToNtPathName_U_WithStatus=RtlDosPathNameToNtPathName_U_WithStatus,
        NtCreateFile=NtCreateFile,
        RtlFreeUnicodeString=RtlFreeUnicodeString,
        RtlNtStatusToDosError=not_called,
    ),
    "kernel32": types.SimpleNamespace(
        GetFileInformationByHandle=GetFileInformationByHandle,
        LockFileEx=LockFileEx,
        UnlockFileEx=UnlockFileEx,
        CloseHandle=not_called,
        OpenProcess=not_called,
        GetProcessTimes=not_called,
    ),
    "advapi32": types.SimpleNamespace(
        ConvertStringSecurityDescriptorToSecurityDescriptorW=ConvertStringSecurityDescriptorToSecurityDescriptorW,
    ),
}
# Import filelock once on the real platform, so the standard library modules it uses load their Linux versions, then
# drop it and import it again with the Windows branches active. A HANDLE is the Linux descriptor number.
import filelock
# noqa: E402

for name in [name for name in sys.modules if name.split(".")[0] == "filelock"]:
    del sys.modules[name]

ctypes.WinDLL = lambda name, use_last_error=False: dlls[name]
sys.modules["msvcrt"] = types.SimpleNamespace(open_osfhandle=lambda handle, _flags: handle, get_osfhandle=lambda fd: fd)
os.O_NOINHERIT = 0
sys.platform = "win32"

import filelock
# noqa: E402, F811

assert filelock.FileLock is filelock.WindowsFileLock

sys.argv = sys.argv[1:]
runpy.run_path(sys.argv[0], run_name="__main__")

Failure sequence

mermaid
sequenceDiagram
    participant O as owner process: FileLock(path, mode=0o600)
    participant N as NtCreateFile
    participant F as lock file (inherits the directory ACL)
    participant U as other local account
    O->>N: _open_non_reparse_fd(path, 0o600): read_only=False, SecurityDescriptor=NULL
    rect rgb(255, 214, 214)
        N-->>F: created with the parent's inheritable entries only, group and other bits not consulted
        Note over F: the file reports mode 0o600 to the owner, the ACL says otherwise
    end
    O->>F: LockFileEx (holds the lock), release, unlock
    U->>F: open for read (and write, where the directory hands down modify)
    U->>F: LockFileEx through that handle
    O->>F: acquire() -> waits or Timeout while U holds the byte-range lock
    U->>F: read holder metadata left by on_acquired with preserve_lock_file=True

Evidence

The scanner's reproducer runs on a Linux image. It imports filelock's unmodified Windows backend with sys.platform == "win32" over stand-ins that print every Win32 call. The program with mode=0o600 and the one without produce identical call lists (RtlDosPathNameToNtPathName_U_WithStatus, NtCreateFile with FileAttributes=0x80 and ObjectAttributes.SecurityDescriptor=None, RtlFreeUnicodeString, GetFileInformationByHandle, LockFileEx, UnlockFileEx), while the Unix control produced 0o600 and 0o644 files. It prints OBSERVED the two Win32 call lists are identical: True and BUG. The scanner stated that it inferred the resulting ACL, and what another user can then do, from the documentation and did not run on Windows.

Maintainer triage: the stand-in reproducer prints BUG on the scanned commit b831496 and on the 4.2.0 release image.

Maintainer verification on Windows 11 with two local accounts: a script creates private.lock with FileLock(mode=0o600, preserve_lock_file=True), default.lock without a mode, and a ReadWriteLock database lock.db as the first account, in a directory granted (OI)(CI)(M) to a second account that is a member of Users. It then opens each file under the second account's logon token with LogonUserW and ImpersonateLoggedOnUser. On 4.2.0 the second account could open private.lock and lock.db for both read and write, the same as default.lock, and icacls listed only inherited (I) entries on all three. This confirms the claim the review had marked unconfirmed.

Impact

A program that passes mode=0o600 so that other accounts cannot open its lock file gets no such restriction on Windows. In a directory that hands down read access, another account can hold the lock and make the owner wait or time out, and read holder metadata in a preserved lock file. Where the directory hands down modify access, as in the maintainers' test, it can also write the lock file and the ReadWriteLock database. With the mode honoured, as on Unix, a user without write access to the directory can do none of this. The exposure ends there: the effect reaches only the lock file or lock database, and mutual exclusion between processes that follow the protocol still holds.

Workarounds

  • On Windows, keep lock files and ReadWriteLock databases in a directory whose ACL already excludes other accounts (inside the user profile, or a directory with inheritance disabled and only the owner, SYSTEM and Administrators granted), rather than relying on mode.
  • After creating a lock file with preserve_lock_file=True or a ReadWriteLock database, set its ACL yourself, for example icacls <file> /inheritance:r /grant:r "<owner>:F" "SYSTEM:F" "Administrators:F"; a file that exists keeps its ACL on later opens.
  • Do not store anything confidential in the lock file through on_acquired on Windows.

Patched version

4.2.1.

Fix: https://github.com/tox-dev/filelock/pull/835

Credits

Reported by Anthropic's OSS Scanner (automated analysis), 15 October 2026; reviewed by the maintainers.

  • 2026-10-15 23:08 UTC: report received (36 findings; this one rated medium by the scanner)
  • 2026-10-16 05:38 UTC: draft advisory created (first as part of GHSA-69hj-f68j-2879, then split out); two-account verification on Windows by the maintainers
  • 2026-10-16 01:16 UTC: fix PR #835 opened

Threat Intelligence Overview

Prevalence
High
extremely popular Python locking library, transitive dependency of virtualenv and much tooling
Threat Intel
1
1 source
Data Quality
3 sources
Confidence: Low
NVD CVE.org GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)GitHub Advisory

pkg:pip/filelock
CVE-2025-52691 CRITICAL POC
10.0 Dec 29

Unauthenticated remote code execution in SmarterTools SmarterMail lets an attacker upload arbitrary files to any locatio

CVE-2019-0803 HIGH POC
7.8 Apr 09

Windows Win32k fails to properly handle objects in memory, allowing local privilege escalation exploited in the wild in

CVE-2020-1472 MEDIUM POC
5.5 Aug 17

A privilege escalation vulnerability (CVSS 5.5). Risk factors: actively exploited (KEV-listed), EPSS 94% exploitation pr

CVE-2025-33053 HIGH POC
8.8 Jun 10

Windows Internet Shortcut Files (.url) contain an external control vulnerability (CVE-2025-33053, CVSS 8.8) that enables

CVE-2025-33073 HIGH POC
8.8 Jun 10

Windows SMB contains an improper access control vulnerability (CVE-2025-33073, CVSS 8.8) enabling authenticated attacker

CVE-2013-10047 CRITICAL POC
9.3 Aug 01

An unrestricted file upload vulnerability exists in MiniWeb HTTP Server <= Build 300 that allows unauthenticated remote

CVE-2012-10030 CRITICAL POC
9.3 Aug 05

FreeFloat FTP Server contains multiple critical design flaws that allow unauthenticated remote attackers to upload arbit

CVE-2025-34101 CRITICAL POC
9.3 Jul 10

Serviio Media Server versions 1.4 through 1.8 on Windows contain an unauthenticated command injection in the /rest/actio

CVE-2025-34095 CRITICAL POC
9.3 Jul 10

Mako Server versions 2.5 and 2.6 contain an unauthenticated OS command injection via the tutorial interface at examples/

CVE-2025-11953 CRITICAL POC
9.8 Nov 03

React Native Metro Development Server binds to external interfaces by default and contains an OS command injection endpo

CVE-2026-96951 HIGH POC
8.8 Oct 13

Command injection in the Windows Shell lets remote, unauthenticated attackers bypass a Windows security feature and then

CVE-2025-24054 MEDIUM POC
6.5 Mar 11

External control of file name or path in Windows NTLM allows an unauthorized attacker to perform spoofing over a network

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy