Description
Agno's PythonTools in libs/agno/agno/tools/python.py contains a path traversal vulnerability that allows attackers to read, write, or execute arbitrary files by supplying parent-directory traversal sequences in the file_name argument passed to read_file, save_to_file, or run_python_file tool actions. Attackers can inject traversal sequences such as '../../../../../../etc/passwd' through direct tool invocation or via prompt injection embedded in agent-processed content to escape the intended base_dir boundary and achieve arbitrary file read, arbitrary file write, or arbitrary Python code execution within the process user's authority.
Published: 2026-08-19
Score: 8.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Agno's PythonTools module forgives any directory traversal characters in the file_name argument for its read_file, save_to_file, or run_python_file actions. This flaw permits an attacker to read sensitive files, overwrite arbitrary filesystem locations, or execute arbitrary Python code with the process’s permissions. The vulnerability can be triggered by supplying a crafted file_name directly or by embedding traversal sequences in prompts that the agent processes. The consequence is loss of confidentiality, integrity, and the potential for full process compromise.

Affected Systems

The affected product is Agno AGI:Agno, specifically its PythonTools implementation in libs/agno/agno/tools/python.py. No specific version information is supplied; any deployment of the library that incorporates this code path is vulnerable.

Risk and Exploitability

With a CVSS score of 8.5, the flaw is classified as highly severe. Exploitation probability information is not available, and the vulnerability is not listed in CISA's KEV catalog. Attackers can inject the exploit through tool calls or via prompt injection that the agent processes, allowing local or remote exploitation if an attacker can trigger the vulnerable action. The lack of mitigation in the code makes the vulnerability easy to abuse and the potential impact very high.

Generated by OpenCVE AI on August 20, 2026 at 08:36 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor patch available in commit 710d7e7f86 to update the PythonTools module and eliminate the traversal flaw.
  • Configure the agent or deployment to enforce that file_name arguments are resolved relative to a dedicated base directory and reject any path that resolves outside of that scope.
  • Restrict the privileges of the process running PythonTools, ensuring that even if file access is possible it cannot reach critical system files or execute unauthorized code.

Generated by OpenCVE AI on August 20, 2026 at 08:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 20 Aug 2026 00:45:00 +0000

Type Values Removed Values Added
First Time appeared Agno-agi
Agno-agi agno
Vendors & Products Agno-agi
Agno-agi agno

Wed, 19 Aug 2026 22:15:00 +0000

Type Values Removed Values Added
Description Agno's PythonTools in libs/agno/agno/tools/python.py contains a path traversal vulnerability that allows attackers to read, write, or execute arbitrary files by supplying parent-directory traversal sequences in the file_name argument passed to read_file, save_to_file, or run_python_file tool actions. Attackers can inject traversal sequences such as '../../../../../../etc/passwd' through direct tool invocation or via prompt injection embedded in agent-processed content to escape the intended base_dir boundary and achieve arbitrary file read, arbitrary file write, or arbitrary Python code execution within the process user's authority.
Title Agno PythonTools Path Traversal via joinpath file_name argument
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:A/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-20T15:20:06.725Z

Reserved: 2026-08-19T20:34:00.154Z

Link: CVE-2026-76832

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-19T22:17:27.960

Modified: 2026-08-20T16:18:20.903

Link: CVE-2026-76832

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-20T08:45:12Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')