🇰🇷 한글 설명
PraisonAI 4.5.138 이하 버전은 현재 작업 디렉토리의 tools.py 파일을 검증 없이 자동으로 import하여 임의의 코드 실행 취약점이 존재합니다. 공격자가 PraisonAI 실행 디렉토리에 악의적인 tools.py를 배치하면 즉시 임의의 Python 코드를 실행할 수 있으며, 호스트 시스템 전체를 장악할 수 있습니다.
💡 쉬운 설명
PraisonAI가 폴더에 있는 tools.py 파일을 아무 확인 없이 자동으로 실행하므로, 악의적인 파일을 심으면 컴퓨터를 완전히 장악당할 수 있습니다. 4.5.139 이상으로 업데이트하면 문제가 해결됩니다.
🇺🇸 원문 (English)
PraisonAI is a multi-agent teams system. Versions 4.5.138 and below are vulnerable to arbitrary code execution through automatic, unsanitized import of a tools.py file from the current working directory. Components including call.py (import_tools_from_file()), tool_resolver.py (_load_local_tools()), and CLI tool-loading paths blindly import ./tools.py at startup without any validation, sandboxing, or user confirmation. An attacker who can place a malicious tools.py in the directory where PraisonAI is launched (such as through a shared project, cloned repository, or writable workspace) achieves immediate arbitrary Python code execution in the host environment. This compromises the full PraisonAI process, the host system, and any connected data or credentials. This issue has been fixed in version 4.5.139.
📍 영향받는 시스템
PraisonAI 4.5.138 이하
⚔️ 공격 벡터
공유 프로젝트/저장소 또는 쓰기 가능한 디렉토리에 악의적인 tools.py 파일 배치 후 PraisonAI 실행
🛡️ 대응 방법
PraisonAI를 4.5.139 이상으로 업그레이드
🔧 검증 코드
버전이 4.5.139 이상이면 안전, 4.5.138 이하이거나 설치되지 않으면 업그레이드 필요
pip show praisonai 2>/dev/null | grep -oP 'Version: \K[\d.]+' || echo 'not installed'