Race condition
A bug where the outcome depends on which of two things happens first.
A race condition is a bug where the result depends on which of two things happens first. When two programs, or two parts of one program, use the same thing at the same moment without taking turns, one can act on information the other has just changed. Races are hard to reproduce because they depend on timing, and some can be exploited, for example by slipping a change in between a security check and the action it was guarding.
See also
Sources
- CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')MITREofficial healthy, checked 2026-11-15 archived copy
- Race conditionWikipedia healthy, checked 2026-11-15 archived copy
In security catalogues
- CWE-362 Concurrent Execution using Shared Resource with Improper SynchronizationCWE healthy, checked 2026-11-15 archived copy