CWE-367

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

Description

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.

Diagram

Diagram illustrating CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition

Source: MITRE CWE™ — CWE-367

CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition — CVE Insight