🇰🇷 한글 설명
RAGFlow 0.24.0 이전 버전에서 StringTransform 및 Message 컴포넌트가 미샌드박싱된 jinja2.Template을 사용하여 인증된 사용자의 임의의 템플릿을 렌더링합니다. 이는 서버 측 템플릿 인젝션(SSTI) 취약점으로 이어지며, 공격자가 서버에서 임의의 운영체제 명령어를 실행할 수 있습니다.
💡 쉬운 설명
RAGFlow라는 AI 도구에 보안 구멍이 있어서, 로그인한 사용자가 특수한 코드를 입력하면 서버 컴퓨터를 제어할 수 있습니다. 현재 이를 고치는 공식 업데이트가 아직 없습니다.
🇺🇸 원문 (English)
RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In versions 0.24.0 and prior, a Server-Side Template Injection (SSTI) vulnerability exists in RAGFlow's Agent workflow Text Processing (StringTransform) and Message components. These components use Python's jinja2.Template (unsandboxed) to render user-supplied templates, allowing any authenticated user to execute arbitrary operating system commands on the server. At time of publication, there are no publicly available patches.
📍 영향받는 시스템
RAGFlow 버전 0.24.0 이하
⚔️ 공격 벡터
인증된 사용자가 Agent 워크플로우의 Text Processing(StringTransform) 또는 Message 컴포넌트에 악의적인 jinja2 템플릿을 주입
🛡️ 대응 방법
RAGFlow를 0.24.1 이상으로 업그레이드하거나, 공식 패치가 배포될 때까지 인증되지 않은 사용자의 접근을 제한
🔧 검증 코드
설치된 RAGFlow 버전이 0.24.0 이하이면 취약함. 버전 정보가 없으면 설치되지 않은 상태
pip list 2>/dev/null | grep -i ragflow