---
id: CVE-2026-76832
title: >-
  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
  pas…
summary: >-
  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
  pas…
severity: high
cvss: 8.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-22
published: '2026-08-19'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T20:06:30.133'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-76832'
references:
  - url: 'https://github.com/agno-agi/agno'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/agno-agi/agno/commit/710d7e7f846f93b7a3eadfd3e77075428c39e803
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/agno-pythontools-path-traversal-via-joinpath-file-name-argument
    label: disclosure@vulncheck.com
tags:
  - nvd
epss: 0.01256
epssPercentile: 0.68232
ingestedAt: '2026-09-24T20:51:40.210Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
