🔍 CVE-2026-85725

5.9
CVSS Score
MEDIUM
2026-09-22
2026-09-26 00:16
✅ 완료

🇰🇷 한글 설명

LightRAG 1.5.5 미만 버전의 lightrag/api/passwords.py 내 verify_password 함수에서 평문 비밀번호 비교 시 발생하는 타이밍 공격 취약점입니다. 파이썬의 == 연산자가 일치하지 않는 첫 바이트에서 즉시 반환됨에 따라 응답 시간 차이가 발생하며, 이를 통해 공격자가 비밀번호를 한 글자씩 알아낼 수 있습니다.

💡 쉬운 설명

비밀번호를 확인할 때 틀린 부분이 나오면 즉시 멈추는 특성 때문에, 컴퓨터가 응답하는 미세한 시간 차이를 이용해 비밀번호를 알아내는 공격입니다. 공격자는 이 시간 차이를 반복적으로 측정하여 비밀번호를 한 글자씩 맞출 수 있습니다.

🇺🇸 원문 (English)

LightRAG provides simple and fast retrieval-augmented generation. Prior to 1.5.5, verify_password in lightrag/api/passwords.py compares plaintext AUTH_ACCOUNTS password values with Python's == operator. The comparison can return after the first mismatching byte, creating response-time differences based on password length and matching prefixes. A network attacker with sufficiently low-latency access can repeatedly query the /login endpoint and use the timing oracle to recover a plaintext-configured password character by character. Deployments using bcrypt-prefixed password values are not affected by this comparison path. This issue is fixed in version 1.5.5.

📍 영향받는 시스템

LightRAG 1.5.5 미만 버전 (bcrypt를 사용하지 않는 평문 설정 환경)

⚔️ 공격 벡터

네트워크를 통해 /login 엔드포인트에 반복적인 쿼리를 보내 응답 시간을 측정하는 타이밍 공격(Timing Oracle)

🛡️ 대응 방법

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

🔧 검증 코드

출력된 버전이 1.5.5 미만이면 취약한 상태이며, 1.5.5 이상이면 안전합니다.

Shell / Script
pip show lightrag | grep Version

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python