Common Weakness Enumeration

    CWE Definition / CWE-366

    CWE-366: Race Condition within a Thread

    If two threads of execution use a resource simultaneously, there exists the possibility that resources may be used while invalid, in turn making the state of execution undefined.

    Published:19 Jul 2006
    Organization:MITRE
    Modified:11 Dec 2025

    Related Weakness

    CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

    CWE-662: Improper Synchronization

    CWE-662: Improper Synchronization