🇰🇷 한글 설명
Open WebUI 0.8.12 이전 버전의 /api/v1/utils/code/execute 엔드포인트가 feature gate를 검증하지 않아, 관리자가 ENABLE_CODE_EXECUTION=false로 설정했음에도 Jupyter를 통해 인증된 사용자의 임의 Python 코드 실행을 허용합니다.
💡 쉬운 설명
Open WebUI 앱에서 관리자가 코드 실행을 꺼놨는데도 특정 URL을 통해 누구나 파이썬 명령어를 실행할 수 있습니다. 공격자가 이를 이용하면 서버를 완전히 장악할 수 있습니다.
🇺🇸 원문 (English)
Open WebUI is a self-hosted artificial intelligence platform designed to operate entirely offline. Prior to 0.8.12, the /api/v1/utils/code/execute endpoint executes arbitrary Python code via Jupyter for any verified user, even when the admin has set ENABLE_CODE_EXECUTION=false. The feature gate is not enforced on the API endpoint — the configuration says "disabled" but code still executes. This vulnerability is fixed in 0.8.12.
📍 영향받는 시스템
Open WebUI 0.8.11 이하
⚔️ 공격 벡터
인증된 사용자가 /api/v1/utils/code/execute 엔드포인트로 Python 코드를 포함한 POST 요청 전송
🛡️ 대응 방법
Open WebUI를 0.8.12 이상으로 즉시 업그레이드
🔧 검증 코드
Version이 0.8.12 이상이면 패치됨. 0.8.11 이하면 취약함.
pip show open-webui 2>/dev/null | grep -E 'Version'