🔍 CVE-2026-57138

9.9
CVSS Score
CRITICAL
2026-09-15
2026-09-17 14:17
✅ 완료

🇰🇷 한글 설명

PraisonAI의 codeMode 기능에서 신뢰할 수 없는 JavaScript를 실행할 때 샌드박스 우회 취약점이 존재합니다. 공격자는 특수 구문을 사용하여 시스템의 실제 Function 생성자에 접근함으로써 파일 시스템 접근 및 명령 실행이 가능합니다. 이 문제는 1.7.2 버전에서 수정되었습니다.

💡 쉬운 설명

프로그램이 코드를 실행할 때 안전한 가상 공간(샌드박스)을 사용한다고 주장하지만, 실제로는 이 벽을 뚫고 컴퓨터를 직접 조종할 수 있는 구멍이 있습니다. 이를 통해 해커가 사용자의 파일을 훔치거나 컴퓨터를 마음대로 조작할 수 있습니다.

🇺🇸 원문 (English)

PraisonAI is a multi-agent teams system. From 1.4.0 until 1.7.2, codeMode in src/praisonai-ts/src/tools/builtins/code-mode.ts executes untrusted JavaScript with new Function() inside with(sandbox) and relies on a small source-code blocklist plus shadowed process and require properties. Code can use ({}).constructor.constructor to recover the real Function constructor, obtain process and process.mainModule.require, and reach host filesystem and subprocess APIs despite the advertised sandbox. Attackers who control codeMode input can read secrets, modify files, execute commands, or exhaust the host process. This issue is fixed in version 1.7.2.

📍 영향받는 시스템

PraisonAI version 1.4.0 to 1.7.2

⚔️ 공격 벡터

codeMode 입력값에 조작된 JavaScript 코드를 주입하여 샌드박스를 우회하고 호스트 시스템 권한 획득

🛡️ 대응 방법

PraisonAI를 최신 버전인 1.7.2 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전이 1.7.2 미만(예: 1.4.0 ~ 1.7.1)이면 취약한 상태입니다.

Shell / Script
npm list -g praisonai-ts | grep -E 'praisonai-ts@([0-9]+\.[0-9]+\.[0-9]+)'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Teams