🔍 CVE-2026-40156

7.8
CVSS Score
HIGH
2026-04-10
2026-10-26 21:10
✅ 완료

🇰🇷 한글 설명

PraisonAI 4.5.128 미만 버전에서 현재 작업 디렉토리에 있는 tools.py 파일을 자동으로 로드하고 실행하는 취약점이 발견되었습니다. 이 과정에서 사용자 검증이나 샌드박싱 없이 모듈 수준의 코드가 즉시 실행되므로, 악성 파일이 디렉토리에 위치할 경우 임의의 코드가 실행될 수 있습니다.

💡 쉬운 설명

프로그램이 실행될 때 특정 이름의 파일을 자동으로 읽어오는 과정에서 보안 검사를 하지 않아 발생하는 문제입니다. 해커가 몰래 악성 코드가 담긴 파일을 해당 폴더에 넣어두기만 해도 프로그램이 실행되자마자 해커의 명령이 실행될 수 있습니다.

🇺🇸 원문 (English)

PraisonAI is a multi-agent teams system. Prior to 4.5.128, PraisonAI automatically loads a file named tools.py from the current working directory to discover and register custom agent tools. This loading process uses importlib.util.spec_from_file_location and immediately executes module-level code via spec.loader.exec_module() without explicit user consent, validation, or sandboxing. The tools.py file is loaded implicitly, even when it is not referenced in configuration files or explicitly requested by the user. As a result, merely placing a file named tools.py in the working directory is sufficient to trigger code execution. This behavior violates the expected security boundary between user-controlled project files (e.g., YAML configurations) and executable code, as untrusted content in the working directory is treated as trusted and executed automatically. If an attacker can place a malicious tools.py file into a directory where a user or automated system (e.g., CI/CD pipeline) runs praisonai, arbitrary code execution occurs immediately upon startup, before any agent logic begins. This vulnerability is fixed in 4.5.128.

📍 영향받는 시스템

PraisonAI versions prior to 4.5.128

⚔️ 공격 벡터

공격자가 사용자의 작업 디렉토리에 악성 코드가 포함된 tools.py 파일을 배치하여 프로그램 실행 시 코드를 실행함

🛡️ 대응 방법

PraisonAI를 4.5.128 버전 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 4.5.128 미만이면 취약한 상태이며, 4.5.128 이상이면 안전합니다.

Shell / Script
pip show praisonai | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Teams