Attack  ·  Glossary

TOCTOU Race Condition (Time-of-Check-Time-of-Use)

A timing-based vulnerability where an attacker exploits the gap between the moment a system checks a condition and the moment it acts on that check. By modifying data between these two moments, the attacker can bypass the security check.
In AI agent workflows, TOCTOU gaps become broader because agents operate asynchronously across multiple systems. An agent may check permission at step one, but by step three the permissions have changed—allowing unauthorized access.
References
CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
Track this in the live feed See how this plays out in real AI security and governance developments.
Open the feed →