🔍 CVE-2026-76832

8.8
CVSS Score
HIGH
2026-08-19
2026-09-24 20:06
✅ 완료

🇰🇷 한글 설명

Agno의 PythonTools 내 파일 처리 기능에서 경로 탐색(Path Traversal) 취약점이 발견되었습니다. 공격자가 file_name 인자에 상위 디렉토리 이동 시퀀스를 삽입하여 의도된 디렉토리를 벗어나 임의의 파일을 읽고, 쓰고, 실행할 수 있습니다.

💡 쉬운 설명

프로그램이 정해진 폴더 안에서만 파일을 다뤄야 하는데, 특수 문자를 이용해 폴더 밖의 중요한 파일을 몰래 보거나 수정할 수 있는 문제입니다. 이를 통해 해커가 컴퓨터의 비밀번호 파일을 훔치거나 악성 코드를 실행할 수 있습니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

Agno 라이브러리의 PythonTools (libs/agno/agno/tools/python.py 포함 버전)

⚔️ 공격 벡터

직접적인 도구 호출 또는 프롬프트 인젝션을 통한 파일 경로 조작

🛡️ 대응 방법

입력값에 대한 경로 검증 로직을 추가하고, 파일 접근 시 허용된 디렉토리(base_dir)를 벗어나는지 확인하는 샌드박싱 적용

🔧 검증 코드

설치된 Agno 라이브러리의 버전을 확인하여 취약점이 해결된 패치 버전인지 대조합니다.

Shell / Script
pip show agno | grep Version

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Python