CWE-367Base4 in KEV

Time-of-check Time-of-use (TOCTOU) Race Condition

Incomplete in the CWE catalog · 664 CVEs mapped

664
CVEs mapped
4
In KEV
7.0
Median CVSS
What it is

The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.

Recent examples
3.3cvss
CVE-2026-112941

CVE-2026-112941 - LOW Severity Vulnerability

filelock is a platform-independent file lock for Python. From 4.1.0 until 4.2.1, SoftReadWriteLock and AsyncSoftReadWriteLock cache a successful check of the <path>.rw lock tree and resolve its names again during later record operations, allowing another local user who can replace that tree after the first acquisition to redirect lock-record writes into directories writable by the lock user. This issue is fixed in version 4.2.1.

LOWno explanation yet
0%
epss
6.1cvss
CVE-2026-112937

CVE-2026-112937 - MEDIUM Severity Vulnerability

filelock is a platform-independent file lock for Python. From 4.1.0 until 4.2.1, ReadWriteLock can remove a randomized .filelock-* private-hard-link directory during cleanup, allowing another local user with rename access in a non-sticky parent to observe a live name or forge a dead-owner sweep name and rename a sibling directory onto it for deletion. This issue is fixed in version 4.2.1.

MEDIUMno explanation yet
0%
epss
4.7cvss
CVE-2026-112935

CVE-2026-112935 - MEDIUM Severity Vulnerability

filelock is a platform-independent file lock for Python. From 3.22.0 until 4.2.1, SoftFileLock can break a stale marker after an attacker frees its own marker following the stale read, an honest contender creates a live successor on the reused inode, and the successor's modification time is not newer than the saved observation, causing the live marker to be removed and two holders to be admitted. This issue is fixed in version 4.2.1.

MEDIUMno explanation yet
0%
epss
The record
Technical detail
CWE ID
CWE-367
Abstraction
Base
Structure
Simple
Status
Incomplete
References (2)