agno is vulnerable to Path Traversal
88
High Risk
The PythonTools toolkit builds file paths from a caller-supplied file_name in read_file, save_to_file_and_run, and run_python_file_return_variable without confirming the path stays inside the intended directory. Parent-directory sequences such as ../../etc/passwd in file_name escape the base directory. This allows reading, writing, or executing files outside the intended location with the privileges of the agent process, reachable directly or through prompt injection of agent input. The fix adds a base-directory restriction and a centralized path check that rejects paths resolving outside the base directory.
You are affected if you are using a version that falls within the vulnerable range and your application exposes the PythonTools toolkit (read_file, save_to_file_and_run, or run_python_file_return_variable) to untrusted or model-influenced file paths.
agno is vulnerable to Path Traversal in versions 0.0.1 - 2.3.23.
Upgrade the agno library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant