BREW-RAWDOG-CVE-2026-112938 (GHSA-M462-7RXW-WVPG)
Vulnerability from osv_homebrew – Published: 2026-10-29 21:50 – Updated: 2026-10-29 21:50 – Source websiteStrictSoftFileLock and AsyncStrictSoftFileLock check <path>.filelock (the coordination directory that holds the lock's state) with one lstat call on its name. lstat reports what a name is without following a symbolic link (a file that redirects to another path). After that check, the code reaches <path>.filelock/claims by pathname for every later operation (mkdir, scan, publish, link, unlink). _open_directory passes O_NOFOLLOW (a flag that makes an open fail when the final name is a symbolic link), but the flag covers only the final claims component. The kernel follows a symbolic link in any earlier component.
Another local user (the other user below) who can rename <path>.filelock exchanges it for a symbolic link after the check. In a shared directory without the sticky bit (a directory flag that lets only a file's owner rename or remove it), any user with write access can do this. Where the shared directory is sticky, such as /tmp, only the user who created <path>.filelock before the user running the lock (the lock user below) first used it can. The lock user's process (root's, if root takes the lock) then creates a claims directory and claim files (the files whose presence says a process wants or holds the lock) inside a directory the other user chooses but only the lock user can write.
When the link points at another strict lock's .filelock directory, the stranded claims make that lock time out for every process until an operator finds and force-breaks each one. The claims property and force_break() resolve the same path with no check at all. Affected versions: filelock >= 3.30.0 and <= 4.2.0 (finding ANT-2026-SVFEYX89).
Severity
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H, 5.8 (Medium).
AV:L (local): the other user needs an account on the same host. AC:H (high attack complexity): the swap must land between the lstat and the next mkdir. The other user does not aim at that window. It flips the name in a loop with renameat2(RENAME_EXCHANGE) (a system call that swaps two names in one step) across repeated acquires, and won after 1 to 31 runs of the lock user's program in the scanner's trials. A sticky directory also requires it to have created <path>.filelock first. PR:L (low privileges): an unprivileged account is enough. UI:N (no user interaction): the lock user's process acts on its own.
C:L (low confidentiality impact): through claims, one file name per planted link from a directory only the lock user can list. I:L (low integrity impact): a directory named claims and files with filelock's fixed claim names and contents appear, created with the lock user's privileges, in a directory the other user chooses but cannot write. The process overwrites or truncates nothing that exists. A:H (high availability impact): aimed at another strict lock of the lock user, the stranded claims deny that lock to every process until an operator finds and force-breaks each one. Classification from the review: security, conditional on the other user being able to rename the intermediate component. The scanner rated it high (CWE-363).
Scope and preconditions
- The other user can rename
<path>.filelock. In a writable directory without the sticky bit (a0777or group-writable project or cache directory), any user with write permission on the directory can, even though the lock user created and owns<path>.filelock. In a sticky directory such as/tmp, only the user who created<path>.filelockbefore the lock user's first use can, because that user then owns both the directory and the symbolic link (the planting precondition of GHSA-9c4x-gm8v-wgc4). - The link's target is a directory the lock user can write. The effect that matters is on that directory. An acquire that completes through the link also holds the shared lock with its claims elsewhere, but a user who can rename
<path>.filelockcan defeat that lock's exclusion anyway. fs.protected_symlinks=1(a Linux setting that refuses to follow another user's symbolic link in a world-writable sticky directory) does not interfere. The link is an intermediate path component, not the last one. In the sticky-directory case it also sits in a directory the other user owns.- Missed attempts show up to the lock user as
SoftFileLockProtocolErrororFileNotFoundError. The swap therefore works against a lock that a program takes more than once: a periodic job, a worker pool, or a caller that retries or waits with a timeout (each poll of a waiting acquisition is a new attempt). - The two entry points that need no race (
claimsandforce_break()on a resting symbolic link) depend on the lock user inspecting or recovering the lock. The planted link invites this by makingacquire()fail with a protocol error. Theforce_break()variant works only when the lock user breaks claims that name a live process on its own host without checking them first, as the recovery loop indocs/tutorials.rstdoes.docs/how-to.rsttells the operator to verify that the named owner is gone before breaking. - Platform: POSIX, demonstrated on Linux (tmpfs and overlayfs). Windows has no
dir_fd(file operations relative to an open directory handle), and on Windows the documented requirement is a lock directory that untrusted users cannot write.
filelock's checks against another local user hold only when no other user can replace the lock's directory or any of its ancestors. That is the case when each ancestor belongs to the lock user or root and is either not writable by others or sticky. A user who can rename entries in a non-sticky directory above the lock controls every name below it. No file-based lock can defend against that.
Affected code
At the scanned commit b831496, the check and the first use are adjacent lines of StrictSoftFileLock._acquire. There, _ensure_protocol_directory runs lstat on <path>.filelock and then mkdir on <path>.filelock/claims. _open_directory passes O_DIRECTORY | O_NOFOLLOW but receives the full <path>.filelock/claims. The claim scan goes by pathname in _read_existing_claims (directory.exists()) and _list_claim_names (os.scandir(directory)). So do _publish_record, _link_no_replace, _unlink_in_directory and the clock probe in _filesystem_now. The claims property and force_break() take the directory from _claim_directory by string concatenation, and _require_exact_name confirms the name with a by-name os.scandir.
Introduced
The by-name claim directory came with 650c17c79c54 ("feat(strict): replace shared markers with owner claims", #659, 2026-07-14), first released in 3.30.0. One effect is newer. The clock-probe files that a swap at claims leaves behind need _filesystem_now, added in 508d0548538f ("fix(strict): age private records by the filesystem clock", #792, 2026-10-07), first released in 4.1.0. Before that commit a claim scan created nothing. We checked both against the git tags.
Mechanism
On the benign path, _ensure_protocol_directory(coordination_directory) finds <path>.filelock to be a real directory, and _ensure_protocol_directory(claim_directory) finds claims inside it. The doorway (the acquire step that scans existing claims and publishes the caller's own) then publishes into it. A symbolic link resting at <path>.filelock stops at the first call with "is not a real directory". That answer describes the name at that instant only; nothing carries it forward. With the name exchanged for a link to a directory T between the two calls:
- The second call runs
mkdir("<path>.filelock/claims"), which createsT/claimswith the lock user's credentials. Themkdirsucceeds, so_ensure_protocol_directoryreturns without looking at anything. _attempt_doorwaythen works inT/claimsfor as long as the name still points there._read_existing_claimsusesdirectory.exists()andos.scandir(directory)._publish_recordopens the claim directory by its full path and creates.intent-v1-<token>.claim.private-v1-<hex>.tmpandintent-v1-<token>.claim(the intent claim, which announces a pending acquire) in it. When its intent wins the scan,_link_no_replaceaddsheld-v1-<token>.claim(the held claim, which marks the lock as taken)._open_directorydoes passO_DIRECTORY | O_NOFOLLOW, but on"<path>.filelock/claims", so the flag coversclaimsonly.- Cleanup resolves the name again.
_unlink_in_directoryopens<path>.filelock/claimsby path. When the name is back at the real directory by then, theunlinkgetsENOENT(the "no such file" error), which_unlink_owner_path_resultcounts as removed. The claim file stays inT/claims.
When T/claims already exists, the mkdir takes the FileExistsError branch, lstat sees a real directory, and the same scan and publication run on the existing directory. With T/claims holding a file secret-name.txt and an old .held-v1-<hex>.claim.private-v1-<hex>.tmp, the lock user's process raises SoftFileLockProtocolError: … claim 'secret-name.txt': unknown claim name or protocol version. _reclaim_private_record unlinks the private-record file. intent-*.claim files and a clock-probe file from _filesystem_now stay behind.
The window is a few lines of Python between two system calls, but the other user does not aim at it. renameat2 with RENAME_EXCHANGE flips the name in a loop, so each system call of the lock user sees the directory or the link more or less at random. An attempt that sees the link at the lstat raises SoftFileLockProtocolError. One that sees the directory there and the link at the next mkdir is a hit. Four other ways reach the same by-name resolution. The scanner observed each of them at the same commit, with victim and attacker as separate accounts and default lock options.
The first way strands claims in another strict lock. With the swapped-in link pointing at the coordination directory of a second lock of the lock user (/home/victim/private/db.lock.filelock, parent mode 0700), 200 acquires of the shared lock left 7 to 17 well-formed intent-v1-*.claim and held-v1-*.claim files in the second lock's claims. No process holds that lock, yet StrictSoftFileLock("/home/victim/private/db.lock", timeout=1) raises Timeout from then on, until an operator force-breaks each stranded claim.
The second way swaps one component lower, at claims. The claim scan does not use a descriptor (an open handle that stays bound to one directory whatever its name later points to). os.scandir(directory), the record reads, _reclaim_private_record (called with its descriptor slot set to None) and the clock probe in _filesystem_now (os.open(directory / name, O_CREAT | O_EXCL | O_NOFOLLOW) followed by probe.unlink()) all go by pathname. For a sticky directory, the other user needs to have created <path>.filelock first. It then puts a real claims directory (mode 1777) in it with one empty file named .held-v1-<32 zeros>.claim.private-v1-<32 zeros>.tmp, so that every scan calls the probe, and exchanges claims with a link in a loop.
After 200 acquires by the lock user, 14 to 42 one-byte, mode 0600, lock-user-owned files named .held-v1-<hex>.claim.private-v1-<hex>.tmp are in the 0700 directory the link points to. The probe open went through the link, and the pathname unlink ran after claims was a directory again and got ENOENT. A swap at this level does not affect publication or release, because there _open_directory's O_NOFOLLOW does cover claims.
The third way is claims with no race. The property calls _read_existing_claims on an instance that did not go through _acquire, and directory.exists() and os.scandir(directory) both follow a link. After the other user runs mkdir /tmp/work.lock.filelock; ln -s /home/victim/private /tmp/work.lock.filelock/claims, acquire() refuses with "is not a real directory". The inspection loop from docs/how-to.rst (for claim in lock.claims: ...) raises SoftFileLockProtocolError: … claim 'customer-1123f274.db': unknown claim name or protocol version. That names the first non-hidden entry, in sort order, of a directory the other user cannot list. A missing or empty target returns (), a non-directory gives "Not a directory" and an unreadable directory "Permission denied", so the call also tells those apart.
The fourth way is force_break() with no race. It confirms the name with a by-name os.scandir in _require_exact_name and unlinks through _unlink_in_directory, where O_NOFOLLOW again covers claims only. After the other user's one command ln -s /home/victim/private/db.lock.filelock /tmp/service.lock.filelock, the recovery loop from docs/tutorials.rst run by the lock user on /tmp/service.lock (for claim in stale.claims: stale.force_break(claim.name)) lists and removes the held and intent claims of the live holder of /home/victim/private/db.lock. A second process then acquires that lock while the first is still in its critical section with is_locked == True. The first holder's release() later finds its claims gone, counts ENOENT as removed and returns without error. Only a directory named claims below the link's target is reachable, so the targets are other strict locks, not arbitrary files.
Reproduction
The scanner's reproducer for finding ANT-2026-SVFEYX89, as received, ran against commit b831496b0273ecd11bf02b8d080ca8b673a538c1. The repro script drives the files under repro.d/.
repro
#!/usr/bin/env python3
import collections
import os
import pwd
import shutil
import stat
import subprocess
import sys
as_victim = {"user": "victim", "group": "victim", "extra_groups": []}
as_attacker = {"user": "attacker", "group": "attacker", "extra_groups": []}
victim_job = [sys.executable, "/tmp/repro.d/victim_job.py"]
attacker_swap_loop = [sys.executable, "/tmp/repro.d/attacker_swap_loop.py"]
victim_uid = pwd.getpwnam("victim").pw_uid
# set up: a directory both users can write (0777, no sticky bit) and one only the victim can write.
# The shared one is on tmpfs to keep the attacker's rename loop off the container's disk.
shared = "/dev/shm/filelock-repro-shared"
private = "/tmp/filelock-repro-private"
shutil.rmtree(shared, ignore_errors=True)
shutil.rmtree(private, ignore_errors=True)
os.mkdir(shared)
os.chmod(shared, 0o777)
os.mkdir(private, 0o700)
shutil.chown(private, "victim", "victim")
own_mkdir = subprocess.run(["mkdir", f"{private}/claims"], capture_output=True, text=True, **as_attacker)
print(f"CONTROL attacker's own mkdir: {own_mkdir.stderr.strip()}")
subprocess.run(["ln", "-s", private, f"{shared}/static.lock.filelock"], check=True, **as_attacker)
refused = subprocess.run([*victim_job, f"{shared}/static.lock"], capture_output=True, text=True, check=True, **as_victim)
print(f"CONTROL symlink resting at static.lock.filelock: {refused.stdout.strip()}; private directory holds {os.listdir(private)}")
# the job has run before, undisturbed, so work.lock.filelock is the victim's own directory
first_run = subprocess.run([*victim_job, f"{shared}/work.lock"], capture_output=True, text=True, check=True, **as_victim)
coordination = os.lstat(f"{shared}/work.lock.filelock")
print(f"CONTROL undisturbed job: {first_run.stdout.strip()}; work.lock.filelock is {stat.filemode(coordination.st_mode)}, owner uid {coordination.st_uid}")
private_before_attack = os.listdir(private)
print(f"CONTROL private directory holds {private_before_attack}")
# attack: the attacker keeps exchanging work.lock.filelock with a symlink to the private directory
# while the job keeps running; each run is one more chance to land between the check and the use
swapper = subprocess.Popen([*attacker_swap_loop, f"{shared}/work.lock", private], **as_attacker)
job_outcomes = collections.Counter()
while job_outcomes.total() < 200 and not os.listdir(private):
job = subprocess.run([*victim_job, f"{shared}/work.lock"], capture_output=True, text=True, **as_victim)
job_outcomes[job.stdout.strip()] += 1
assert swapper.poll() is None, "the attacker's swap loop stopped on its own"
swapper.kill()
swapper.wait()
# check: the victim's lock created "claims" inside the directory the attacker could not write
print(f"OBSERVED {job_outcomes.total()} runs of the job printed {dict(job_outcomes)}")
print(f"OBSERVED private directory holds {os.listdir(private)}")
redirected = False
if os.path.lexists(f"{private}/claims"):
claims = os.lstat(f"{private}/claims")
print(f"OBSERVED {private}/claims is {stat.filemode(claims.st_mode)}, owner uid {claims.st_uid} (victim is {victim_uid}), holds {os.listdir(f'{private}/claims')}")
redirected = stat.S_ISDIR(claims.st_mode) and claims.st_uid == victim_uid
print("BUG" if private_before_attack == [] and redirected else "OK")
repro.d/attacker_swap_loop.py
import ctypes
import os
import sys
import time
lock_path, target_directory = sys.argv[1], sys.argv[2]
coordination_directory = f"{lock_path}.filelock".encode()
symlink_to_target = f"{lock_path}.decoy".encode()
os.symlink(target_directory, symlink_to_target)
renameat2 = ctypes.CDLL(None, use_errno=True).renameat2
AT_FDCWD = -100
RENAME_EXCHANGE = 2
give_up_at = time.monotonic() + 300
while time.monotonic() < give_up_at:
# one atomic syscall: the name always exists, as the victim's directory or as the symlink
if renameat2(AT_FDCWD, coordination_directory, AT_FDCWD, symlink_to_target, RENAME_EXCHANGE) != 0:
raise OSError(ctypes.get_errno(), "renameat2(RENAME_EXCHANGE)")
repro.d/victim_job.py
import sys
from filelock import StrictSoftFileLock
try:
with StrictSoftFileLock(sys.argv[1], timeout=1):
print("job ran")
except OSError as error: # filelock.Timeout and SoftFileLockProtocolError are both OSError
print(f"job skipped: {type(error).__name__}")
Attack sequence
sequenceDiagram
participant X as other local user
participant N as work.lock.filelock (name in shared dir)
participant V as job of the lock user (StrictSoftFileLock, timeout=1)
participant T as /tmp/private (0700, lock user only)
X->>N: plant work.lock.decoy -> T, loop renameat2(RENAME_EXCHANGE)
rect rgb(207, 228, 255)
V->>N: lstat work.lock.filelock: a real directory
end
rect rgb(255, 214, 214)
X->>N: exchange lands: name is now the symbolic link to T
V->>T: mkdir work.lock.filelock/claims creates T/claims (owned by the lock user)
V->>T: scan, publish intent-v1-<token>.claim, link held-v1-<token>.claim in T/claims
X->>N: exchange again: name is the directory
V->>N: release(): unlink by path gets ENOENT, counted as removed
Note over V,T: T/claims and its claim files stay behind#59; aimed at another lock's .filelock they block that lock
end
Note over V,N: a miss: lstat sees the symbolic link, SoftFileLockProtocolError, next run tries again
Evidence
The scanner's reproducer (commit b831496, Linux 6.1 x86_64, CPython 3.14, fs.protected_symlinks=1) creates /dev/shm/filelock-repro-shared (0777, no sticky bit) and /tmp/filelock-repro-private (0700, owned by victim). Three controls run first. The other account's own mkdir in the private directory answers Permission denied. A link resting at static.lock.filelock gives job skipped: SoftFileLockProtocolError with the private directory holding []. An undisturbed job prints job ran and leaves work.lock.filelock as drwxr-xr-x, owner uid 1000.
Then the swap loop starts and the job (with StrictSoftFileLock(path, timeout=1)) runs up to 200 times until the private directory is no longer empty. That took 1 to 8 runs, about 1.5 s in total. Afterwards claims, a directory owned by uid 1000 and mode 0755, is in the private directory; in some runs it holds intent-v1-<token>.claim and held-v1-<token>.claim files. Verdict BUG. In a 1777 directory on tmpfs (a memory-backed filesystem), with the other account having created <path>.filelock first, the lock user created T/claims after 4, 22 and 2 runs in three trials. The scanner ran the four further cases under Mechanism in separate runs with the same accounts.
Our review ran the reproducer against the 4.2.0 release image and the scanned commit (BUG on both) and against the head of #839 (OK: all 200 runs completed with the private directory empty). The review's regression tests on POSIX cover the claims-level swap and the force_break() case. We did not verify Windows.
Impact
Another local user who can rename <path>.filelock makes the lock user's process create a directory named claims, mode 0777 & ~umask (umask: the process's default permission mask), inside any directory that process can write, and leave claim files in it. The other user chooses the location only. filelock fixes the directory name, and the files contain filelock's own claim record (magic, token, PID, host name, start token). The process overwrites or truncates nothing that exists. This amounts to directory and file creation outside the lock's directory with the lock user's privileges, not a write of chosen data.
Where the chosen directory already has a claims subdirectory, the lock user's process also scans it, unlinks entries named like stale private records, and raises an error that quotes the first other file name in it. Aimed at another strict lock's .filelock directory, the stranded claims deny that lock to every process until an operator finds and force_break()s each one. Without this the other user has no way to affect a lock in a directory it cannot enter. The swap at claims leaves one-byte 0600 dot-files instead of claims.
Through claims, another user learns one file name per planted link from a directory only the lock user can list, and whether a guessed path is missing or empty, a file or a directory. This needs the exception text or its claim_name to reach that user (a shared log, CI output, an error report); on its own this disclosure is minor. The force_break() variant puts two processes inside a different strict lock's critical section, one the other user can neither list nor write, with neither told. That happens only when the lock user runs the tutorial's blind recovery loop.
This shares only the bug class with GHSA-j8f7-rjxc-mr56 (the symbolic link at the ReadWriteLock database path, fixed in 4.0.9). There the other user chose the file the lock opened. Here the link sits one component above the final one, the other user swaps it in after the check that refuses it, and it chooses only the parent directory.
Workarounds
Keep strict locks in a directory no other user can write. In a sticky shared directory, create <path>.filelock as the service user before any other account can, and check its owner before first use. Do not run the recovery loop from docs/tutorials.rst on a lock in a shared directory without first verifying, as docs/how-to.rst says, that the owner named in each claim is gone. Treat an unexpected SoftFileLockProtocolError that quotes an unknown claim name as a sign that claims may point elsewhere. Keep the exception text of claims out of logs other accounts can read. On Windows, keep the lock directory writable only by trusted users.
Patched version
4.2.1.
Fix: https://github.com/tox-dev/filelock/pull/839
Credits
Reported by Anthropic's OSS Scanner (automated analysis), 15 October 2026; reviewed by the maintainers.
- 2026-10-15 23:08 UTC: report received (finding
ANT-2026-SVFEYX89, scanned commit b831496b0273) - 2026-10-16 01:31 UTC: fix PR #839 opened
- 2026-10-16 05:41 UTC: draft advisory created (first as part of GHSA-9c4x-gm8v-wgc4, then split into this advisory)
{
"affected": [
{
"ecosystem_specific": {
"fix": "bump",
"range_state": "fixed",
"resource": "filelock",
"resource_purl": "pkg:pypi/filelock@4.2.4",
"upstream_fixed_in": "4.2.1"
},
"package": {
"ecosystem": "Homebrew",
"name": "rawdog",
"purl": "pkg:brew/rawdog"
},
"ranges": [
{
"events": [
{
"introduced": "0.1.6_24"
},
{
"fixed": "0.1.6_28"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"database_specific": {
"confidence": "high",
"source": "matched",
"strategy": "registry",
"upstream_evidence": [
{
"ecosystem": "PyPI",
"key": "pkg:pypi/filelock@4.2.4",
"name": "filelock",
"resource": "filelock",
"strategy": "registry",
"subject_version": "4.2.4"
}
]
},
"details": "`StrictSoftFileLock` and `AsyncStrictSoftFileLock` check `\u003cpath\u003e.filelock` (the coordination directory that holds the lock\u0027s state) with one `lstat` call on its name. `lstat` reports what a name is without following a symbolic link (a file that redirects to another path). After that check, the code reaches `\u003cpath\u003e.filelock/claims` by pathname for every later operation (`mkdir`, scan, publish, link, unlink). `_open_directory` passes `O_NOFOLLOW` (a flag that makes an open fail when the final name is a symbolic link), but the flag covers only the final `claims` component. The kernel follows a symbolic link in any earlier component.\n\nAnother local user (the other user below) who can rename `\u003cpath\u003e.filelock` exchanges it for a symbolic link after the check. In a shared directory without the sticky bit (a directory flag that lets only a file\u0027s owner rename or remove it), any user with write access can do this. Where the shared directory is sticky, such as `/tmp`, only the user who created `\u003cpath\u003e.filelock` before the user running the lock (the lock user below) first used it can. The lock user\u0027s process (root\u0027s, if root takes the lock) then creates a `claims` directory and claim files (the files whose presence says a process wants or holds the lock) inside a directory the other user chooses but only the lock user can write.\n\nWhen the link points at another strict lock\u0027s `.filelock` directory, the stranded claims make that lock time out for every process until an operator finds and force-breaks each one. The `claims` property and `force_break()` resolve the same path with no check at all. Affected versions: filelock \u003e= 3.30.0 and \u003c= 4.2.0 (finding `ANT-2026-SVFEYX89`).\n\n## Severity\n\n**CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H, 5.8 (Medium).**\n\n`AV:L` (local): the other user needs an account on the same host. `AC:H` (high attack complexity): the swap must land between the `lstat` and the next `mkdir`. The other user does not aim at that window. It flips the name in a loop with `renameat2(RENAME_EXCHANGE)` (a system call that swaps two names in one step) across repeated acquires, and won after 1 to 31 runs of the lock user\u0027s program in the scanner\u0027s trials. A sticky directory also requires it to have created `\u003cpath\u003e.filelock` first. `PR:L` (low privileges): an unprivileged account is enough. `UI:N` (no user interaction): the lock user\u0027s process acts on its own.\n\n`C:L` (low confidentiality impact): through `claims`, one file name per planted link from a directory only the lock user can list. `I:L` (low integrity impact): a directory named `claims` and files with filelock\u0027s fixed claim names and contents appear, created with the lock user\u0027s privileges, in a directory the other user chooses but cannot write. The process overwrites or truncates nothing that exists. `A:H` (high availability impact): aimed at another strict lock of the lock user, the stranded claims deny that lock to every process until an operator finds and force-breaks each one. Classification from the review: security, conditional on the other user being able to rename the intermediate component. The scanner rated it high (CWE-363).\n\n## Scope and preconditions\n\n- The other user can rename `\u003cpath\u003e.filelock`. In a writable directory without the sticky bit (a `0777` or group-writable project or cache directory), any user with write permission on the directory can, even though the lock user created and owns `\u003cpath\u003e.filelock`. In a sticky directory such as `/tmp`, only the user who created `\u003cpath\u003e.filelock` before the lock user\u0027s first use can, because that user then owns both the directory and the symbolic link (the planting precondition of GHSA-9c4x-gm8v-wgc4).\n- The link\u0027s target is a directory the lock user can write. The effect that matters is on that directory. An acquire that completes through the link also holds the shared lock with its claims elsewhere, but a user who can rename `\u003cpath\u003e.filelock` can defeat that lock\u0027s exclusion anyway.\n- `fs.protected_symlinks=1` (a Linux setting that refuses to follow another user\u0027s symbolic link in a world-writable sticky directory) does not interfere. The link is an intermediate path component, not the last one. In the sticky-directory case it also sits in a directory the other user owns.\n- Missed attempts show up to the lock user as `SoftFileLockProtocolError` or `FileNotFoundError`. The swap therefore works against a lock that a program takes more than once: a periodic job, a worker pool, or a caller that retries or waits with a timeout (each poll of a waiting acquisition is a new attempt).\n- The two entry points that need no race (`claims` and `force_break()` on a resting symbolic link) depend on the lock user inspecting or recovering the lock. The planted link invites this by making `acquire()` fail with a protocol error. The `force_break()` variant works only when the lock user breaks claims that name a live process on its own host without checking them first, as the recovery loop in `docs/tutorials.rst` does. `docs/how-to.rst` tells the operator to verify that the named owner is gone before breaking.\n- Platform: POSIX, demonstrated on Linux (tmpfs and overlayfs). Windows has no `dir_fd` (file operations relative to an open directory handle), and on Windows the documented requirement is a lock directory that untrusted users cannot write.\n\nfilelock\u0027s checks against another local user hold only when no other user can replace the lock\u0027s directory or any of its ancestors. That is the case when each ancestor belongs to the lock user or root and is either not writable by others or sticky. A user who can rename entries in a non-sticky directory above the lock controls every name below it. No file-based lock can defend against that.\n\n## Affected code\n\nAt the scanned commit b831496, the check and the first use are adjacent lines of [`StrictSoftFileLock._acquire`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_strict.py#L123-L128). There, [`_ensure_protocol_directory`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_strict.py#L996-L1006) runs `lstat` on `\u003cpath\u003e.filelock` and then `mkdir` on `\u003cpath\u003e.filelock/claims`. [`_open_directory`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_strict.py#L950-L954) passes `O_DIRECTORY | O_NOFOLLOW` but receives the full `\u003cpath\u003e.filelock/claims`. The claim scan goes by pathname in [`_read_existing_claims`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_strict.py#L509-L514) (`directory.exists()`) and [`_list_claim_names`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_strict.py#L433-L439) (`os.scandir(directory)`). So do [`_publish_record`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_strict.py#L572-L596), [`_link_no_replace`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_strict.py#L864-L881), [`_unlink_in_directory`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_strict.py#L912-L939) and the clock probe in [`_filesystem_now`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_strict.py#L745-L763). The [`claims` property](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_strict.py#L235-L239) and [`force_break()`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_strict.py#L260-L267) take the directory from [`_claim_directory`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_strict.py#L314-L318) by string concatenation, and [`_require_exact_name`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_strict.py#L1016-L1019) confirms the name with a by-name `os.scandir`.\n\n## Introduced\n\nThe by-name claim directory came with 650c17c79c54 (\"feat(strict): replace shared markers with owner claims\", #659, 2026-07-14), first released in 3.30.0. One effect is newer. The clock-probe files that a swap at `claims` leaves behind need `_filesystem_now`, added in 508d0548538f (\"fix(strict): age private records by the filesystem clock\", #792, 2026-10-07), first released in 4.1.0. Before that commit a claim scan created nothing. We checked both against the git tags.\n\n## Mechanism\n\nOn the benign path, `_ensure_protocol_directory(coordination_directory)` finds `\u003cpath\u003e.filelock` to be a real directory, and `_ensure_protocol_directory(claim_directory)` finds `claims` inside it. The doorway (the acquire step that scans existing claims and publishes the caller\u0027s own) then publishes into it. A symbolic link resting at `\u003cpath\u003e.filelock` stops at the first call with \"is not a real directory\". That answer describes the name at that instant only; nothing carries it forward. With the name exchanged for a link to a directory `T` between the two calls:\n\n- The second call runs `mkdir(\"\u003cpath\u003e.filelock/claims\")`, which creates `T/claims` with the lock user\u0027s credentials. The `mkdir` succeeds, so `_ensure_protocol_directory` returns without looking at anything.\n- `_attempt_doorway` then works in `T/claims` for as long as the name still points there. `_read_existing_claims` uses `directory.exists()` and `os.scandir(directory)`. `_publish_record` opens the claim directory by its full path and creates `.intent-v1-\u003ctoken\u003e.claim.private-v1-\u003chex\u003e.tmp` and `intent-v1-\u003ctoken\u003e.claim` (the intent claim, which announces a pending acquire) in it. When its intent wins the scan, `_link_no_replace` adds `held-v1-\u003ctoken\u003e.claim` (the held claim, which marks the lock as taken). `_open_directory` does pass `O_DIRECTORY | O_NOFOLLOW`, but on `\"\u003cpath\u003e.filelock/claims\"`, so the flag covers `claims` only.\n- Cleanup resolves the name again. `_unlink_in_directory` opens `\u003cpath\u003e.filelock/claims` by path. When the name is back at the real directory by then, the `unlink` gets `ENOENT` (the \"no such file\" error), which `_unlink_owner_path_result` counts as removed. The claim file stays in `T/claims`.\n\nWhen `T/claims` already exists, the `mkdir` takes the `FileExistsError` branch, `lstat` sees a real directory, and the same scan and publication run on the existing directory. With `T/claims` holding a file `secret-name.txt` and an old `.held-v1-\u003chex\u003e.claim.private-v1-\u003chex\u003e.tmp`, the lock user\u0027s process raises `SoftFileLockProtocolError: \u2026 claim \u0027secret-name.txt\u0027: unknown claim name or protocol version`. `_reclaim_private_record` unlinks the private-record file. `intent-*.claim` files and a clock-probe file from `_filesystem_now` stay behind.\n\nThe window is a few lines of Python between two system calls, but the other user does not aim at it. `renameat2` with `RENAME_EXCHANGE` flips the name in a loop, so each system call of the lock user sees the directory or the link more or less at random. An attempt that sees the link at the `lstat` raises `SoftFileLockProtocolError`. One that sees the directory there and the link at the next `mkdir` is a hit. Four other ways reach the same by-name resolution. The scanner observed each of them at the same commit, with `victim` and `attacker` as separate accounts and default lock options.\n\nThe first way strands claims in another strict lock. With the swapped-in link pointing at the coordination directory of a second lock of the lock user (`/home/victim/private/db.lock.filelock`, parent mode `0700`), 200 acquires of the shared lock left 7 to 17 well-formed `intent-v1-*.claim` and `held-v1-*.claim` files in the second lock\u0027s `claims`. No process holds that lock, yet `StrictSoftFileLock(\"/home/victim/private/db.lock\", timeout=1)` raises `Timeout` from then on, until an operator force-breaks each stranded claim.\n\nThe second way swaps one component lower, at `claims`. The claim scan does not use a descriptor (an open handle that stays bound to one directory whatever its name later points to). `os.scandir(directory)`, the record reads, `_reclaim_private_record` (called with its descriptor slot set to `None`) and the clock probe in `_filesystem_now` (`os.open(directory / name, O_CREAT | O_EXCL | O_NOFOLLOW)` followed by `probe.unlink()`) all go by pathname. For a sticky directory, the other user needs to have created `\u003cpath\u003e.filelock` first. It then puts a real `claims` directory (mode `1777`) in it with one empty file named `.held-v1-\u003c32 zeros\u003e.claim.private-v1-\u003c32 zeros\u003e.tmp`, so that every scan calls the probe, and exchanges `claims` with a link in a loop.\n\nAfter 200 acquires by the lock user, 14 to 42 one-byte, mode `0600`, lock-user-owned files named `.held-v1-\u003chex\u003e.claim.private-v1-\u003chex\u003e.tmp` are in the `0700` directory the link points to. The probe open went through the link, and the pathname `unlink` ran after `claims` was a directory again and got `ENOENT`. A swap at this level does not affect publication or release, because there `_open_directory`\u0027s `O_NOFOLLOW` does cover `claims`.\n\nThe third way is `claims` with no race. The property calls `_read_existing_claims` on an instance that did not go through `_acquire`, and `directory.exists()` and `os.scandir(directory)` both follow a link. After the other user runs `mkdir /tmp/work.lock.filelock; ln -s /home/victim/private /tmp/work.lock.filelock/claims`, `acquire()` refuses with \"is not a real directory\". The inspection loop from `docs/how-to.rst` (`for claim in lock.claims: ...`) raises `SoftFileLockProtocolError: \u2026 claim \u0027customer-1123f274.db\u0027: unknown claim name or protocol version`. That names the first non-hidden entry, in sort order, of a directory the other user cannot list. A missing or empty target returns `()`, a non-directory gives \"Not a directory\" and an unreadable directory \"Permission denied\", so the call also tells those apart.\n\nThe fourth way is `force_break()` with no race. It confirms the name with a by-name `os.scandir` in `_require_exact_name` and unlinks through `_unlink_in_directory`, where `O_NOFOLLOW` again covers `claims` only. After the other user\u0027s one command `ln -s /home/victim/private/db.lock.filelock /tmp/service.lock.filelock`, the recovery loop from `docs/tutorials.rst` run by the lock user on `/tmp/service.lock` (`for claim in stale.claims: stale.force_break(claim.name)`) lists and removes the `held` and `intent` claims of the live holder of `/home/victim/private/db.lock`. A second process then acquires that lock while the first is still in its critical section with `is_locked == True`. The first holder\u0027s `release()` later finds its claims gone, counts `ENOENT` as removed and returns without error. Only a directory named `claims` below the link\u0027s target is reachable, so the targets are other strict locks, not arbitrary files.\n\n## Reproduction\n\nThe scanner\u0027s reproducer for finding `ANT-2026-SVFEYX89`, as received, ran against commit b831496b0273ecd11bf02b8d080ca8b673a538c1. The `repro` script drives the files under `repro.d/`.\n\n**`repro`**\n\n```python\n#!/usr/bin/env python3\nimport collections\nimport os\nimport pwd\nimport shutil\nimport stat\nimport subprocess\nimport sys\n\nas_victim = {\"user\": \"victim\", \"group\": \"victim\", \"extra_groups\": []}\nas_attacker = {\"user\": \"attacker\", \"group\": \"attacker\", \"extra_groups\": []}\nvictim_job = [sys.executable, \"/tmp/repro.d/victim_job.py\"]\nattacker_swap_loop = [sys.executable, \"/tmp/repro.d/attacker_swap_loop.py\"]\nvictim_uid = pwd.getpwnam(\"victim\").pw_uid\n\n# set up: a directory both users can write (0777, no sticky bit) and one only the victim can write.\n# The shared one is on tmpfs to keep the attacker\u0027s rename loop off the container\u0027s disk.\nshared = \"/dev/shm/filelock-repro-shared\"\nprivate = \"/tmp/filelock-repro-private\"\nshutil.rmtree(shared, ignore_errors=True)\nshutil.rmtree(private, ignore_errors=True)\nos.mkdir(shared)\nos.chmod(shared, 0o777)\nos.mkdir(private, 0o700)\nshutil.chown(private, \"victim\", \"victim\")\n\nown_mkdir = subprocess.run([\"mkdir\", f\"{private}/claims\"], capture_output=True, text=True, **as_attacker)\nprint(f\"CONTROL attacker\u0027s own mkdir: {own_mkdir.stderr.strip()}\")\n\nsubprocess.run([\"ln\", \"-s\", private, f\"{shared}/static.lock.filelock\"], check=True, **as_attacker)\nrefused = subprocess.run([*victim_job, f\"{shared}/static.lock\"], capture_output=True, text=True, check=True, **as_victim)\nprint(f\"CONTROL symlink resting at static.lock.filelock: {refused.stdout.strip()}; private directory holds {os.listdir(private)}\")\n\n# the job has run before, undisturbed, so work.lock.filelock is the victim\u0027s own directory\nfirst_run = subprocess.run([*victim_job, f\"{shared}/work.lock\"], capture_output=True, text=True, check=True, **as_victim)\ncoordination = os.lstat(f\"{shared}/work.lock.filelock\")\nprint(f\"CONTROL undisturbed job: {first_run.stdout.strip()}; work.lock.filelock is {stat.filemode(coordination.st_mode)}, owner uid {coordination.st_uid}\")\nprivate_before_attack = os.listdir(private)\nprint(f\"CONTROL private directory holds {private_before_attack}\")\n\n# attack: the attacker keeps exchanging work.lock.filelock with a symlink to the private directory\n# while the job keeps running; each run is one more chance to land between the check and the use\nswapper = subprocess.Popen([*attacker_swap_loop, f\"{shared}/work.lock\", private], **as_attacker)\njob_outcomes = collections.Counter()\nwhile job_outcomes.total() \u003c 200 and not os.listdir(private):\n job = subprocess.run([*victim_job, f\"{shared}/work.lock\"], capture_output=True, text=True, **as_victim)\n job_outcomes[job.stdout.strip()] += 1\nassert swapper.poll() is None, \"the attacker\u0027s swap loop stopped on its own\"\nswapper.kill()\nswapper.wait()\n\n# check: the victim\u0027s lock created \"claims\" inside the directory the attacker could not write\nprint(f\"OBSERVED {job_outcomes.total()} runs of the job printed {dict(job_outcomes)}\")\nprint(f\"OBSERVED private directory holds {os.listdir(private)}\")\nredirected = False\nif os.path.lexists(f\"{private}/claims\"):\n claims = os.lstat(f\"{private}/claims\")\n print(f\"OBSERVED {private}/claims is {stat.filemode(claims.st_mode)}, owner uid {claims.st_uid} (victim is {victim_uid}), holds {os.listdir(f\u0027{private}/claims\u0027)}\")\n redirected = stat.S_ISDIR(claims.st_mode) and claims.st_uid == victim_uid\nprint(\"BUG\" if private_before_attack == [] and redirected else \"OK\")\n```\n\n**`repro.d/attacker_swap_loop.py`**\n\n```python\nimport ctypes\nimport os\nimport sys\nimport time\n\nlock_path, target_directory = sys.argv[1], sys.argv[2]\ncoordination_directory = f\"{lock_path}.filelock\".encode()\nsymlink_to_target = f\"{lock_path}.decoy\".encode()\nos.symlink(target_directory, symlink_to_target)\n\nrenameat2 = ctypes.CDLL(None, use_errno=True).renameat2\nAT_FDCWD = -100\nRENAME_EXCHANGE = 2\ngive_up_at = time.monotonic() + 300\nwhile time.monotonic() \u003c give_up_at:\n # one atomic syscall: the name always exists, as the victim\u0027s directory or as the symlink\n if renameat2(AT_FDCWD, coordination_directory, AT_FDCWD, symlink_to_target, RENAME_EXCHANGE) != 0:\n raise OSError(ctypes.get_errno(), \"renameat2(RENAME_EXCHANGE)\")\n```\n\n**`repro.d/victim_job.py`**\n\n```python\nimport sys\n\nfrom filelock import StrictSoftFileLock\n\ntry:\n with StrictSoftFileLock(sys.argv[1], timeout=1):\n print(\"job ran\")\nexcept OSError as error: # filelock.Timeout and SoftFileLockProtocolError are both OSError\n print(f\"job skipped: {type(error).__name__}\")\n```\n\n## Attack sequence\n\n```mermaid\nsequenceDiagram\n participant X as other local user\n participant N as work.lock.filelock (name in shared dir)\n participant V as job of the lock user (StrictSoftFileLock, timeout=1)\n participant T as /tmp/private (0700, lock user only)\n X-\u003e\u003eN: plant work.lock.decoy -\u003e T, loop renameat2(RENAME_EXCHANGE)\n rect rgb(207, 228, 255)\n V-\u003e\u003eN: lstat work.lock.filelock: a real directory\n end\n rect rgb(255, 214, 214)\n X-\u003e\u003eN: exchange lands: name is now the symbolic link to T\n V-\u003e\u003eT: mkdir work.lock.filelock/claims creates T/claims (owned by the lock user)\n V-\u003e\u003eT: scan, publish intent-v1-\u003ctoken\u003e.claim, link held-v1-\u003ctoken\u003e.claim in T/claims\n X-\u003e\u003eN: exchange again: name is the directory\n V-\u003e\u003eN: release(): unlink by path gets ENOENT, counted as removed\n Note over V,T: T/claims and its claim files stay behind#59; aimed at another lock\u0027s .filelock they block that lock\n end\n Note over V,N: a miss: lstat sees the symbolic link, SoftFileLockProtocolError, next run tries again\n```\n\n## Evidence\n\nThe scanner\u0027s reproducer (commit b831496, Linux 6.1 x86_64, CPython 3.14, `fs.protected_symlinks=1`) creates `/dev/shm/filelock-repro-shared` (`0777`, no sticky bit) and `/tmp/filelock-repro-private` (`0700`, owned by `victim`). Three controls run first. The other account\u0027s own `mkdir` in the private directory answers `Permission denied`. A link resting at `static.lock.filelock` gives `job skipped: SoftFileLockProtocolError` with the private directory holding `[]`. An undisturbed job prints `job ran` and leaves `work.lock.filelock` as `drwxr-xr-x`, owner uid 1000.\n\nThen the swap loop starts and the job (`with StrictSoftFileLock(path, timeout=1)`) runs up to 200 times until the private directory is no longer empty. That took 1 to 8 runs, about 1.5 s in total. Afterwards `claims`, a directory owned by uid 1000 and mode `0755`, is in the private directory; in some runs it holds `intent-v1-\u003ctoken\u003e.claim` and `held-v1-\u003ctoken\u003e.claim` files. Verdict `BUG`. In a `1777` directory on tmpfs (a memory-backed filesystem), with the other account having created `\u003cpath\u003e.filelock` first, the lock user created `T/claims` after 4, 22 and 2 runs in three trials. The scanner ran the four further cases under Mechanism in separate runs with the same accounts.\n\nOur review ran the reproducer against the 4.2.0 release image and the scanned commit (`BUG` on both) and against the head of #839 (`OK`: all 200 runs completed with the private directory empty). The review\u0027s regression tests on POSIX cover the `claims`-level swap and the `force_break()` case. We did not verify Windows.\n\n## Impact\n\nAnother local user who can rename `\u003cpath\u003e.filelock` makes the lock user\u0027s process create a directory named `claims`, mode `0777 \u0026 ~umask` (umask: the process\u0027s default permission mask), inside any directory that process can write, and leave claim files in it. The other user chooses the location only. filelock fixes the directory name, and the files contain filelock\u0027s own claim record (magic, token, PID, host name, start token). The process overwrites or truncates nothing that exists. This amounts to directory and file creation outside the lock\u0027s directory with the lock user\u0027s privileges, not a write of chosen data.\n\nWhere the chosen directory already has a `claims` subdirectory, the lock user\u0027s process also scans it, unlinks entries named like stale private records, and raises an error that quotes the first other file name in it. Aimed at another strict lock\u0027s `.filelock` directory, the stranded claims deny that lock to every process until an operator finds and `force_break()`s each one. Without this the other user has no way to affect a lock in a directory it cannot enter. The swap at `claims` leaves one-byte `0600` dot-files instead of claims.\n\nThrough `claims`, another user learns one file name per planted link from a directory only the lock user can list, and whether a guessed path is missing or empty, a file or a directory. This needs the exception text or its `claim_name` to reach that user (a shared log, CI output, an error report); on its own this disclosure is minor. The `force_break()` variant puts two processes inside a different strict lock\u0027s critical section, one the other user can neither list nor write, with neither told. That happens only when the lock user runs the tutorial\u0027s blind recovery loop.\n\nThis shares only the bug class with GHSA-j8f7-rjxc-mr56 (the symbolic link at the `ReadWriteLock` database path, fixed in 4.0.9). There the other user chose the file the lock opened. Here the link sits one component above the final one, the other user swaps it in after the check that refuses it, and it chooses only the parent directory.\n\n## Workarounds\n\nKeep strict locks in a directory no other user can write. In a sticky shared directory, create `\u003cpath\u003e.filelock` as the service user before any other account can, and check its owner before first use. Do not run the recovery loop from `docs/tutorials.rst` on a lock in a shared directory without first verifying, as `docs/how-to.rst` says, that the owner named in each claim is gone. Treat an unexpected `SoftFileLockProtocolError` that quotes an unknown claim name as a sign that `claims` may point elsewhere. Keep the exception text of `claims` out of logs other accounts can read. On Windows, keep the lock directory writable only by trusted users.\n\n## Patched version\n\n4.2.1.\n\nFix: https://github.com/tox-dev/filelock/pull/839\n\n## Credits\n\nReported by Anthropic\u0027s OSS Scanner (automated analysis), 15 October 2026; reviewed by the maintainers.\n\n- 2026-10-15 23:08 UTC: report received (finding `ANT-2026-SVFEYX89`, scanned commit b831496b0273)\n- 2026-10-16 01:31 UTC: fix PR #839 opened\n- 2026-10-16 05:41 UTC: draft advisory created (first as part of GHSA-9c4x-gm8v-wgc4, then split into this advisory)",
"id": "BREW-rawdog-CVE-2026-112938",
"modified": "2026-10-29T21:50:11Z",
"published": "2026-10-29T21:50:11Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/tox-dev/filelock/security/advisories/GHSA-m462-7rxw-wvpg"
},
{
"type": "WEB",
"url": "https://github.com/tox-dev/filelock/pull/839"
},
{
"type": "WEB",
"url": "https://github.com/tox-dev/filelock/commit/bfa066d65a1ba9106f86ee9d027f7588b9c77e03"
},
{
"type": "PACKAGE",
"url": "https://github.com/tox-dev/filelock"
},
{
"type": "WEB",
"url": "https://github.com/tox-dev/filelock/releases/tag/4.2.1"
}
],
"schema_version": "1.7.3",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:H",
"type": "CVSS_V3"
}
],
"summary": "filelock: StrictSoftFileLock follows a symbolic link swapped in at \u003cpath\u003e.filelock and creates claim files in a directory another local user chooses",
"upstream": [
"GHSA-m462-7rxw-wvpg",
"CVE-2026-112938"
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.