Vulnerability DatabaseCVE-2026-112910

CVE-2026-112910: 
Python vulnerability analysis and mitigation

Overview

CVE-2026-112910 is a Windows file permission vulnerability in the filelock Python library (tox-dev/filelock) where the mode argument is silently ignored for WindowsFileLock files and the ReadWriteLock SQLite database. Affected versions are 3.10.0 through 4.2.0 on Windows; UnixFileLock is not affected. The flaw was reported privately by Anthropic's OSS Scanner on October 15, 2026, and publicly disclosed via GitHub Security Advisory GHSA-8mx5-7m5m-r77g on October 28, 2026. It carries a CVSS v3.1 base score of 5.3 (Medium) (GitHub Advisory, filelock Release 4.2.1).

Technical details

The root cause is classified as CWE-732 (Incorrect Permission Assignment for Critical Resource) and CWE-279 (Incorrect Execution-Assigned Permissions). In the Windows backend, _open_non_reparse_fd reduces the mode argument to a single read-only bit and passes it to _nt_open, which constructs an OBJECT_ATTRIBUTES structure with SecurityDescriptor=NULL. When NtCreateFile is called with a NULL security descriptor, Windows NTFS assigns the new file the inheritable ACL entries of its parent directory rather than an owner-only descriptor — meaning a lock created with mode=0o600 receives the same ACL as one created with no mode at all. The ReadWriteLock SQLite database, which filelock internally requests with mode=0o600, is affected by the same code path. The bug was introduced in commit d0061e4 (PR #192, 2023-03-15) when multiuser support was added, making it a long-standing gap present since version 3.10.0 (GitHub Advisory, Fix PR #835).

Impact

A local account on the same Windows host that has inherited read access to the lock directory can open the lock file or ReadWriteLock database that was intended to be owner-only. With read access, the attacker can read holder metadata written by an on_acquired hook (e.g., via preserve_lock_file=True), and can acquire the byte-range lock after the owner releases it, causing the legitimate owner's subsequent acquire() calls to wait or time out (availability impact). Where the parent directory's inheritable ACL grants modify access, the attacker can also write to both the lock file and the lock database, corrupting lock state (integrity impact). Mutual exclusion between cooperating processes that follow the protocol is not broken, and the impact is scoped to the lock file and database only — not to the resources the lock protects (GitHub Advisory).

Exploitability

A proof-of-concept reproducer is publicly available in the GitHub Security Advisory. The PoC demonstrates — using Win32 call stand-ins on Linux — that NtCreateFile receives SecurityDescriptor=None regardless of whether mode=0o600 is specified, and that the two call traces are identical. The maintainers independently confirmed the issue on Windows 11 with two local accounts. Exploitation requires a local logon on the same host and low privileges (an ordinary user account suffices); no user interaction or race condition is needed. The EPSS score is approximately 0.0016, and there is no evidence of in-the-wild exploitation or CISA KEV catalog listing at this time (GitHub Advisory, Feedly).

Exploitation steps

  1. Identify a vulnerable target: Confirm the target Windows system runs a Python application using filelock versions 3.10.0–4.2.0 with FileLock(path, mode=0o600) or ReadWriteLock, and that the lock directory has inheritable ACL entries granting the attacker's local account read (or modify) access to newly created files (e.g., a service data directory readable by the Users group).
  2. Locate the lock file or database: Identify the path of the lock file (created while the owner holds the lock, or persisted with preserve_lock_file=True) or the ReadWriteLock SQLite database (never unlinked). These files inherit the directory ACL and are accessible to the attacker's account.
  3. Read holder metadata: Open the lock file for reading to extract any holder metadata written by an on_acquired hook (e.g., PID, hostname, or application-specific data stored in a preserve_lock_file=True file).
  4. Acquire the byte-range lock: After the owner releases the lock, open the lock file with read access and call LockFileEx on it. Per Windows documentation, read access is sufficient to take a byte-range lock, allowing the attacker to hold the lock and cause the legitimate owner's subsequent acquire() calls to block or time out.
  5. Modify lock files (if modify ACL is inherited): Where the directory hands down modify access, open the lock file or ReadWriteLock database for writing and corrupt their contents, disrupting the lock's internal state for the owning process (GitHub Advisory).

Indicators of compromise

  • File System: Lock files (.lock extension) or ReadWriteLock SQLite databases in shared directories showing ACL entries for accounts other than the owner, SYSTEM, and Administrators (verify with icacls <lockfile>); absence of an explicit DACL (only inherited (I) entries) on lock files created with mode=0o600 on filelock versions 3.10.0–4.2.0.
  • Process Behavior: Legitimate processes experiencing unexpected Timeout exceptions or prolonged blocking on acquire() calls, potentially indicating another local account is holding the byte-range lock.
  • Logs: Application logs showing repeated lock acquisition timeouts or failures on Windows systems; audit logs (if Windows Object Access auditing is enabled) showing unexpected accounts opening lock files or databases in sensitive directories.
  • Windows Security Events: Event ID 4663 (object access) for lock files accessed by accounts other than the expected service or application account, particularly with read or write access (GitHub Advisory).

Mitigation and workarounds

Patch: Upgrade filelock to version 4.2.1 or later, which fixes the issue by constructing a protected DACL (granting owner, SYSTEM, and Administrators full access) via ConvertStringSecurityDescriptorToSecurityDescriptorW when mode has no group or other bits (e.g., 0o600), and passing it in the NtCreateFile object attributes (filelock Release 4.2.1, Fix PR #835).

Workarounds (if immediate patching is not possible):

  • Store lock files and ReadWriteLock databases in a directory whose ACL already excludes other accounts (e.g., inside the user profile, or a directory with inheritance disabled and only the owner, SYSTEM, and Administrators granted access).
  • After creating a lock file with preserve_lock_file=True or a ReadWriteLock database, manually set its ACL: icacls <lockfile> /inheritance:r /grant:r "<OWNER>:F" "SYSTEM:F" "Administrators:F".
  • Do not store sensitive information in lock files via on_acquired hooks on Windows (GitHub Advisory).

Community reactions

The vulnerability was reported by Anthropic's automated OSS Scanner and credited in the advisory, representing a notable example of AI-assisted open-source security research. The filelock maintainer (gaborbernat) responded promptly, opening a fix PR within hours of receiving the report and publishing the patched release 4.2.1 on October 17, 2026 — two days after the private report. The release addressed 17 CVEs simultaneously, indicating a broad security audit of the library. The fix was noted in downstream projects such as Apache Superset and verifywise-ai, and was picked up by security aggregators including Tenable, Red Hat Bugzilla, and Microsoft's MSRC (GitHub Advisory, filelock Release 4.2.1).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

python-filelock

Fixed

sid

python-filelock

Fixed

trixie

python-filelock

Fixed

Ubuntu

Unknown

bionic (esm-apps)

python-filelock

Unknown

devel

python-filelock

Unknown

focal (esm-apps)

python-filelock

Unknown

jammy

python-filelock

Unknown

jammy (esm-apps)

python-filelock

Unknown

noble

python-filelock

Unknown

noble (esm-apps)

python-filelock

Unknown

resolute

python-filelock

Unknown

RHEL / CentOS

Unknown

Source: This report was generated using AI

Related Python vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-fmmw-m59r-c4pfHIGH7.3
  • Python logoPython
  • sentry
NoYesNov 24, 2026
GHSA-jh8f-87gj-2mw7MEDIUM6.5
  • Python logoPython
  • webvigil
NoYesNov 24, 2026
GHSA-wfp3-jwpm-7j2xMEDIUM5.3
  • Python logoPython
  • webvigil
NoYesNov 24, 2026
GHSA-hhpx-9q93-mv55MEDIUM4.7
  • Python logoPython
  • webvigil
NoYesNov 24, 2026
GHSA-vjvj-3m3f-fgmmLOWN/A
  • Python logoPython
  • uv
NoNoNov 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management