Overview
Flyto2 Core is an execution kernel for automation and AI-agent workflows. A sandbox confinement check is applied only to a limited set of modules, leaving several file-write and file-move functions outside the FLYTO_SANDBOX_DIR boundary. The affected modules accept caller-controlled paths without proper validation, enabling attackers to write files outside the intended directory.
Technical details
The flaw resides in the validate_path_with_env_config() implementation, which is applied only to a hand-picked subset of modules. Modules such as data.csv.write, data.json_to_csv, file.copy, and file.move (among others in the data.*, file.*, and report-writer families) lack proper path sanitization. data.csv.write uses a ".." substring denylist that does not block absolute paths, while the other modules accept caller-controlled destination paths without canonical checks. An attacker capable of invoking these modules or recipes can specify arbitrary file paths, causing writes outside the sandboxed directory.
Impact
An attacker able to execute the vulnerable modules can overwrite application code, configuration files, scheduled-task definitions, or authorization files on the host system. This can lead to remote code execution, privilege escalation, or persistent compromise of the affected server. All deployments of Flyto2 Core version < 2.26.8 are potentially exposed.
Recommended actions
- Patch Flyto2 Core to version 2.26.8 or later.
- Restrict execution of untrusted recipes or modules to authorized administrators only.
- Limit network access to the application server to trusted sources.
- Disable or remove unnecessary data.*, file.*, and report-writer modules until the patch is applied.
- Monitor file system writes outside the FLYTO_SANDBOX_DIR for unexpected activity.
Detection
Review application logs for calls to data.csv.write, data.json_to_csv, file.copy, or file.move with absolute or unusually long path arguments. Correlate these events with any modifications to files outside the configured sandbox directory. Enable alerting on file creation or modification in privileged locations such as application binaries, startup scripts, or authorization files.
Reference: NVD entry for CVE-2026-77312