🔍 CVE-2025-68700

8.8
CVSS Score
HIGH
2025-12-31
2026-09-23 14:10
✅ 완료

🇰🇷 한글 설명

RAGFlow 0.23.0 미만 버전에서 낮은 권한을 가진 인증된 사용자가 Canvas CodeExec 구성 요소를 통해 서버 호스트 프로세스에서 임의의 시스템 명령을 실행할 수 있습니다. 이는 검증되지 않은 stdout 데이터를 필터링 없이 eval() 함수로 처리하여 샌드박스 격리를 완전히 우회하기 때문에 발생합니다. 또한 일부 엔드포인트의 권한 제어 미흡으로 인해 공격 표면이 확대되어 연쇄적인 공격이 가능합니다.

💡 쉬운 설명

로그인한 일반 사용자가 시스템의 보안 벽을 뚫고 서버를 마음대로 조종할 수 있는 보안 결함입니다. 프로그램이 외부 데이터를 처리할 때 검증 없이 실행 명령어로 오인하여 발생하는 문제입니다.

🇺🇸 원문 (English)

RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In versions prior to 0.23.0, a low-privileged authenticated user (normal login account) can execute arbitrary system commands on the server host process via the frontend Canvas CodeExec component, completely bypassing sandbox isolation. This occurs because untrusted data (stdout) is parsed using eval() with no filtering or sandboxing. The intended design was to "automatically convert string results into Python objects," but this effectively executes attacker-controlled code. Additional endpoints lack access control or contain inverted permission logic, significantly expanding the attack surface and enabling chained exploitation. Version 0.23.0 contains a patch for the issue.

📍 영향받는 시스템

RAGFlow versions prior to 0.23.0

⚔️ 공격 벡터

인증된 사용자가 Canvas CodeExec 컴포넌트를 통해 조작된 데이터를 전달하여 eval() 함수를 통한 원격 코드 실행(RCE) 수행

🛡️ 대응 방법

RAGFlow를 최신 보안 패치가 적용된 버전인 0.23.0 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 버전 정보가 0.23.0 미만인지 확인하여 취약 여부를 판단합니다.

Shell / Script
python3 -c 'import os; print("RAGFlow Version Check Required")' && [ "$(docker ps --format '{{.Image}}' | grep ragflow)" ] && docker exec $(docker ps -q --filter "ancestor=ragflow") cat /app/version 2>/dev/null || echo "RAGFlow not detected"

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python