// Security Advisory Triage

filelock symlink attack lets attacker overwrite process files via lock database

GitHub advisories — pip · published 2026-10-24 16:01 UTC
ACTION NEEDED PATCH_NOW SECURITY
WHAT CHANGEDCVE-2026-112940 published 23 October 2026 for filelock (Python). ReadWriteLock reopens the SQLite lock database by name, allowing an attacker who can plant a symlink or journal file to cause the victim process to overwrite or unlink its own files. First patched version: 4.2.1.
WHY IT MATTERSfilelock is a common dependency in Python services. Any process using ReadWriteLock on a filesystem where an attacker can write (shared temp directories, user-writable paths) can be forced to corrupt or delete its own files, leading to data loss or denial of service.
WHAT TO DOCheck whether your services depend on filelock (any version before 4.2.1) and use ReadWriteLock. If so, upgrade to filelock 4.2.1 or later. Verify that lock database paths are not in attacker-writable directories.
Model-reported confidence 85% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-v4x8-3wr5-3wq8
+summary: filelock ReadWriteLock: SQLite reopens the lock database by name, so a planted symlink or journal file makes the lock user's process overwrite or unlink its own files
+severity: high
+published_at: 2026-10-23T21:59:08Z
+cve_id: CVE-2026-112940
+vulnerabilities[].package.name: filelock
+vulnerabilities[].first_patched_version: 4.2.1
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.78, needed 0.5
triage reasoningfilelock is a widely-used Python package in dependency trees; symlink attack on lock files is exploitable and affects process file integrity.
signalsknown exploitation vector: symlink/journal file attack on lock database · filelock is a common dependency in Python ecosystem · high severity rating with concrete attack surface · first patched version identified (4.2.1) · affects file system operations that normal services perform
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)