Time-of-check Time-of-use (TOCTOU) Race Condition
CVE-2026-77313
Summary
Flyto2 Core is an execution kernel for automation and AI-agent workflows. Prior to 2.26.8, "validate_url_ssrf" in "src/core/utils.py" resolves and checks a hostname but returns the hostname URL rather than the validated address, and "session.get" in "http.get" performs an independent DNS lookup when connecting. A low-privileged caller with control of the hostname's DNS can make the first lookup return a public address and the connection-time lookup return an internal address, bypassing the SSRF guard for all modules that call it and exposing readable internal or metadata-service responses. Successful exploitation requires attacker-controlled DNS and a successful timing-dependent answer change between the two lookups.
- HIGH
- NETWORK
- LOW
- CHANGED
- NONE
- LOW
- HIGH
- NONE
CWE-367 - Time-of-check Time-of-use (TOCTOU) Race Condition
The software checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. This can cause the software to perform invalid actions when the resource is in an unexpected state.
References
Advisory Timeline
- Published