Intel

AIKIDO-2026-316621

agno is vulnerable to Path Traversal

Path TraversalCVE-2026-76832 Published 4 days ago

88

High Risk

This Affects:

PYTHONagno
0.0.1 - 2.3.23
Fixed in 2.3.24
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

agno is vulnerable to Path Traversal in versions 0.0.1 - 2.3.23.

How to fix this

Upgrade the agno library to the patch version.