🔍 CVE-2026-47392

9.9
CVSS Score
CRITICAL
2026-07-21
2026-07-21 18:59
✅ 완료

🇰🇷 한글 설명

PraisonAI의 execute_code() 함수에서 샌드박스 보안을 우회하여 임의의 OS 명령어를 실행할 수 있는 취약점입니다. print.__self__를 통해 실제 Python builtins 모듈에 접근함으로써 기존의 여러 보안 패치를 무력화하고 호스트 시스템의 제어권을 탈취할 수 있습니다.

💡 쉬운 설명

프로그램이 코드를 안전하게 실행하도록 만든 보호막을 속여서, 해커가 컴퓨터에 직접 명령을 내릴 수 있게 만드는 보안 구멍입니다. 이 구멍을 통해 해커는 사용자의 컴퓨터를 마음대로 조작할 수 있습니다.

🇺🇸 원문 (English)

PraisonAI is a multi-agent teams system. Prior to version 4.6.40 of PraisonAI, corresponding to version 1.6.40 of praisonaiagents, `execute_code()` in `praisonaiagents/tools/python_tools.py` (v1.6.37, subprocess sandbox mode) can be fully bypassed using `print.__self__` to retrieve the real Python `builtins` module, from which `__import__` can be extracted via `vars()` and runtime string construction. This achieves arbitrary OS command execution on the host, completely defeating the sandbox. This is a novel bypass that survives all patches for CVE-2026-39888 (frame traversal), CVE-2026-34938 (str subclass), and CVE-2026-40158 (`type.__getattribute__` trampoline). PraisonAI version 4.6.40 and praisonaiagents version 1.6.40 contain an updated fix.

📍 영향받는 시스템

PraisonAI < 4.6.40, praisonaiagents < 1.6.40

⚔️ 공격 벡터

Python의 내부 속성(print.__self__)을 이용해 샌드박스를 우회하고 builtins 모듈의 __import__를 호출하여 OS 명령 실행

🛡️ 대응 방법

PraisonAI를 4.6.40 버전 이상으로, praisonaiagents를 1.6.40 버전 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 PraisonAI 4.6.40 미만 또는 praisonaiagents 1.6.40 미만이면 취약한 상태입니다.

Shell / Script
pip list | grep -E 'PraisonAI|praisonaiagents'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python