CWE-366β€”Race Condition within a Thread

PUBLISHEDweakness recordMedium
released 2006-07-19 Β· last modified 2025-12-11

Metadata

CWE ID:
CWE-366
Abstraction:
Base
Structure:
Simple
Status:
Draft
Release Date:
2006-07-19
Latest Modification Date:
2025-12-11

Weakness Name

Race Condition within a Thread

Description

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.

Common Consequences

Scope:
Integrity, Other
Impact:
Alter Execution Logic, Unexpected State
Notes:
The main problem is that -- if a lock is overcome -- data could be altered in a bad state.

Related Weaknesses