🇰🇷 한글 설명
LightRAG 1.5.5 미만 버전에서 API 서버가 오류 발생 시 Python 예외 메시지를 가공 없이 그대로 반환하는 취약점이 발견되었습니다. 이로 인해 서버의 파일 시스템 경로, 데이터베이스 접속 정보, 구성 세부 사항 및 라이브러리 내부 정보가 네트워크 클라이언트에 노출될 수 있습니다.
💡 쉬운 설명
프로그램에 오류가 발생했을 때, 보안상 숨겨야 할 서버의 내부 정보가 화면에 그대로 나타나는 문제입니다. 해커는 이 정보를 이용해 서버의 구조나 데이터베이스 접속 정보를 알아낼 수 있습니다.
🇺🇸 원문 (English)
LightRAG provides simple and fast retrieval-augmented generation. Prior to 1.5.5, the LightRAG API server returns raw Python exception text from error handlers in document_routes.py, graph_routes.py, query_routes.py, ollama_api.py, and lightrag_server.py. The detail=str(e), detail=str(exc), and equivalent formatted-message paths expose server filesystem paths, database host, port, user, and database names, language-model provider diagnostics, configuration details, and Python library internals to a network client that can trigger an error. The default unauthenticated configuration makes those responses reachable without credentials, and URI-configured backends can disclose connection strings containing credentials depending on the underlying driver error. This issue is fixed in version 1.5.5.
📍 영향받는 시스템
LightRAG 1.5.5 미만 모든 버전
⚔️ 공격 벡터
인증 없이 접근 가능한 API 엔드포인트에 의도적으로 오류를 유발하는 요청을 전송하여 예외 메시지 탈취
🛡️ 대응 방법
LightRAG를 최신 버전인 1.5.5 이상으로 업데이트하십시오.
🔧 검증 코드
출력된 Version 값이 1.5.5보다 낮으면 취약한 상태입니다.
pip show lightrag | grep -E 'Version'