Intel

AIKIDO-2026-398597

lightrag-hku is vulnerable to Observable Timing Discrepancy

Observable Timing DiscrepancyGHSA-c759-cx9p-mrwq Published 4 days ago

59

Medium Risk

This Affects:

PYTHONlightrag-hku
0.0.1 - 1.5.4
Fixed in 1.5.5
Are you affected? Scan for Free

TL;DR

When plaintext passwords are stored in AUTH_ACCOUNTS, the verify_password function in lightrag/api/passwords.py compares the submitted password against the stored value with Python's == operator, which short-circuits on the first mismatched byte and is not constant-time. A client with low-latency access can measure the timing difference to recover the password length and characters one at a time, without triggering brute-force limits. This only affects deployments that store unhashed passwords rather than bcrypt hashes. The fix uses a constant-time comparison for plaintext passwords.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you store unhashed plaintext passwords in AUTH_ACCOUNTS.

Background info

lightrag-hku is vulnerable to Observable Timing Discrepancy in versions 0.0.1 - 1.5.4.

How to fix this

Upgrade the lightrag-hku library to the patch version.