🔍 CVE-2026-40288

9.8
CVSS Score
CRITICAL
2026-04-14
2026-06-17 10:44
✅ 완료

🇰🇷 한글 설명

PraisonAI 4.5.139 미만 버전에서 YAML 파일 처리 시 검증 없이 shell 명령어, Python 코드를 실행하는 취약점입니다. 공격자가 workflow YAML 파일을 제공할 수 있으면 시스템 전체를 장악할 수 있습니다.

💡 쉬운 설명

PraisonAI는 설정 파일(YAML)을 읽을 때 안전성 검사를 하지 않습니다. 악의적인 설정 파일이 있으면 시스템의 모든 명령어를 실행할 수 있습니다.

🇺🇸 원문 (English)

PraisonAI is a multi-agent teams system. In versions below 4.5.139 of PraisonAI and 1.5.140 of praisonaiagents, the workflow engine is vulnerable to arbitrary command and code execution through untrusted YAML files. When praisonai workflow run <file.yaml> loads a YAML file with type: job, the JobWorkflowExecutor in job_workflow.py processes steps that support run: (shell commands via subprocess.run()), script: (inline Python via exec()), and python: (arbitrary Python script execution)—all without any validation, sandboxing, or user confirmation. The affected code paths include action_run() in workflow.py and _exec_shell(), _exec_inline_python(), and _exec_python_script() in job_workflow.py. An attacker who can supply or influence a workflow YAML file (particularly in CI pipelines, shared repositories, or multi-tenant deployment environments) can achieve full arbitrary command execution on the host system, compromising the machine and any accessible data or credentials. This issue has been fixed in versions 4.5.139 of PraisonAI and 1.5.140 of praisonaiagents.

📍 영향받는 시스템

PraisonAI < 4.5.139, praisonaiagents < 1.5.140

⚔️ 공격 벡터

CI 파이프라인, 공유 저장소, 또는 다중 테넌트 환경에서 공격자가 제어하는 YAML 파일을 workflow 엔진이 로드할 때 임의의 shell/Python 코드 실행

🛡️ 대응 방법

PraisonAI를 4.5.139 이상, praisonaiagents를 1.5.140 이상으로 업그레이드하기

🔧 검증 코드

PraisonAI 버전이 4.5.139 이상, praisonaiagents 버전이 1.5.140 이상이면 패치됨

Shell / Script
pip show praisonai | grep Version && pip show praisonaiagents | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python