A race condition in software development and cybersecurity contexts is a faulty condition in which the system’s behavior depends on the sequence or timing of uncontrollable events, leading to unexpected results.
Race conditions become bugs when the desired order of events is not fulfilled.
https://en.wikipedia.org/wiki/Race_condition