CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Also known as: TOCTTOU, TOCCTOU
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.
Overview
CWE-367 (Time-of-check Time-of-use (TOCTOU) Race Condition) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.