CVE-2026-112940
7.1HighPublished Oct 20, 2026 · NVD status: Modified · AI triage by gemini-3.8-flash
High
0CVSS v3.110
- Attack vector
- Local
- Complexity
- Low
- Privileges
- Low
- User action
- None
- Impact
- High impact on integrity, availability
- Weakness
- CWE-363, CWE-59
What an attacker gets
A local attacker can overwrite or delete arbitrary files, and potentially inject chosen content into files if an adjacent hot journal is writable. To exploit this, the attacker needs local system access with rename permissions in a non-sticky directory containing the lock files.
Root cause
ReadWriteLock allows SQLite to reopen database and side files by name instead of file descriptor, exposing them to symlink or rename race conditions on POSIX systems.
Affected versions
filelock 3.20.4 through versions prior to 4.2.1 on POSIX systems
CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Fix & remediation
Upgrade filelock to version 4.2.1 or newer. If you cannot patch immediately, ensure lock files reside strictly in protected directories with the sticky bit enabled or where untrusted local users lack write/rename permissions.
$ pip install --upgrade 'filelock>=4.2.1'AI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
filelock is a platform-independent file lock for Python. From 3.20.4 until 4.2.1, ReadWriteLock let SQLite reopen the database and side files by name; on POSIX systems an attacker with rename access in a non-sticky parent can swap those names to cause overwrite or unlink operations, while a writable adjacent hot journal is additionally required for attacker-chosen content overwrites. This issue is fixed in version 4.2.1.
References
- https://github.com/tox-dev/filelock/commit/5e3f2ec0c5fb17cb2635b60b2b68bc63ab81ca2dPatch
- https://github.com/tox-dev/filelock/pull/834Patch
- https://github.com/tox-dev/filelock/releases/tag/4.2.1Release Notes
- https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8ExploitMitigationPatch
- https://github.com/tox-dev/filelock/security/advisories/GHSA-v4x8-3wr5-3wq8ExploitMitigationPatch
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-927288.1HighAdjacent attackers can corrupt memory and potentially execute code during the boot process by sending malicious DNS responses. This requires the target to perform DNS resolution while using GRUB2.
- CVE-2026-648868.3HighAuthenticated users can read arbitrary local files and perform server-side request forgery. This allows attackers to steal credentials from environment variables or access internal network services.
- CVE-2026-648839.4CriticalAuthenticated attackers can achieve remote code execution and read sensitive files like signing keys. This is possible because the WebDAV interface fails to restrict file operations to the temporary directory.
- CVE-2026-1448137.5HighRemote attackers can crash the RTSP service, causing a denial of service. No authentication is required to trigger this flaw.
- CVE-2026-775269.9CriticalAuthenticated attackers can achieve remote code execution by uploading malicious files. They can escape the intended directory and overwrite system files because of improper path sanitization.
- CVE-2026-1444127.5HighUnauthenticated attackers can crash the GotaTun service by sending a single oversized UDP packet. This stops all inbound handshakes and data traffic for all peers.