🔍 CVE-2026-40111

8.8
CVSS Score
HIGH
2026-04-09
2026-10-26 22:10
✅ 완료

🇰🇷 한글 설명

PraisonAIAgents 1.5.128 미만 버전에서 메모리 훅 실행기가 사용자 제어 명령 문자열을 검증 없이 subprocess.run(shell=True)으로 전달하여 명령 주입 취약점이 발생합니다. 공격자는 프롬프트 인젝션을 통해 .praisonai/hooks.json 파일을 변조함으로써 에이전트 동작 과정에서 악성 명령을 자동으로 실행할 수 있습니다.

💡 쉬운 설명

AI 에이전트 설정 파일에 몰래 악성 명령어를 심어두면, AI가 작업을 수행할 때마다 해커의 명령이 자동으로 실행되는 보안 결함입니다. 프롬프트 인젝션을 통해 설정 파일을 수정할 수 있다면 시스템 제어권을 탈취당할 수 있습니다.

🇺🇸 원문 (English)

PraisonAIAgents is a multi-agent teams system. Prior to 1.5.128, he memory hooks executor in praisonaiagents passes a user-controlled command string directly to subprocess.run() with shell=True at src/praisonai-agents/praisonaiagents/memory/hooks.py. No sanitization is performed and shell metacharacters are interpreted by /bin/sh before the intended command executes. Two independent attack surfaces exist. The first is via pre_run_command and post_run_command hook event types registered through the hooks configuration. The second and more severe surface is the .praisonai/hooks.json lifecycle configuration, where hooks registered for events such as BEFORE_TOOL and AFTER_TOOL fire automatically during agent operation. An agent that gains file-write access through prompt injection can overwrite .praisonai/hooks.json and have its payload execute silently at every subsequent lifecycle event without further user interaction. This vulnerability is fixed in 1.5.128.

📍 영향받는 시스템

PraisonAIAgents versions prior to 1.5.128

⚔️ 공격 벡터

프롬프트 인젝션을 통한 .praisonai/hooks.json 파일 변조 및 훅 이벤트 트리거

🛡️ 대응 방법

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

🔧 검증 코드

출력된 버전 번호가 1.5.128보다 낮으면 취약한 상태입니다.

Shell / Script
pip show praisonai-agents 2>/dev/null | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Teams