Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach /login over low-latency network
-
DeliverySubmit timed password guesses
-
ExploitMeasure == short-circuit timing delta
-
ExecutionRecover plaintext password char-by-char
-
ImpactAuthenticate and access RAG data/admin
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V6 - Authentication Timing attack prevention
|
| Exploitation Conditions | Requires the deployment to store at least one AUTH_ACCOUNTS credential as a plaintext value rather than a bcrypt-prefixed hash - bcrypt-configured accounts are explicitly not affected because they use a different comparison path. The attacker must have network access to the /login endpoint with sufficiently low and stable latency to resolve microsecond-scale timing differences, and needs to collect many samples to overcome network noise. No authentication or user interaction is required (PR:N/UI:N), but success is further limited to passwords short or simple enough to reconstruct before rate limiting or measurement noise defeats the oracle; the same v1.5.5 release also adds login rate limiting that would constrain the sampling this attack depends on. |
| Impact | This is a genuine but low-priority timing side-channel (CWE-208), not a high-CVSS emergency. The vendor CVSS of 5.9 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N) is well-calibrated: it is network-reachable and unauthenticated (PR:N), but the high attack complexity (AC:H) is the dominant limiting factor and is realistic - the leaked signal is the timing delta of a plaintext Python |
| Exploit ScenarioDerived | An attacker with low-latency network access to a LightRAG server configured with a plaintext AUTH_ACCOUNTS password repeatedly submits guesses to the /login endpoint and measures response times, using the fact that the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 22, 2026
Password recovery via a timing oracle in LightRAG's /login endpoint lets remote, unauthenticated attackers (CVSS PR:N/UI:N) reconstruct plaintext AUTH_ACCOUNTS passwords one character at a time by measuring microsecond-scale response-time differences in Python's short-circuiting '==' comparison, but only in deployments that store credentials as plaintext rather than bcrypt-prefixed values. The attack requires high attack complexity (AC:H) - low-latency network positioning, many samples to overcome jitter, and credentials short or simple enough to recover before noise or rate limiting defeats the oracle. It is fixed in v1.5.5, which also introduces uniform bcrypt timing and login rate limiting; no public exploit code was identified at time of analysis.
RemediationAI
Upgrade to LightRAG v1.5.5, which is the vendor-released patch: it replaces the short-circuiting '==' comparison in lightrag/api/passwords.py with hmac.compare_digest, adds a dummy bcrypt verification so unknown usernames and plaintext accounts take the same ~100 ms path as {bcrypt} accounts, offloads verification via asyncio.to_thread to prevent event-loop starvation, and adds login rate limiting. If immediate upgrade is not possible, the most effective compensating control is to convert every AUTH_ACCOUNTS entry to a bcrypt-prefixed hash - that removes the affected comparison path entirely and is a configuration-only change, though it requires rotating/recording the underlying passwords and note that the username-enumeration timing side-channel in auth.py remains until the upgrade. A second interim control is to restrict network access to the /login endpoint (bind behind an authenticating reverse proxy, IP allowlisting, or VPN), trading off external client accessibility; alternatively, enforce aggressive per-IP rate limiting at a reverse proxy in front of LightRAG, which directly constrains the number of samples the timing oracle requires but risks locking out legitimate users during bursts and can be bypassed by distributed source IPs. Rotating any plaintext-configured credentials that may already have been exposed is advisable, since the oracle yields the credential itself rather than a derivative. Full details are in the advisory at https://github.com/HKUDS/LightRAG/security/advisories/GHSA-c759-cx9p-mrwq.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in pypi, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-208 (Observable Timing Discrepancy). In lightrag/api/passwords.py prior to 1.5.5, verify_password compared the supplied password against the stored AUTH_ACCOUNTS value using Python's '' operator, which short-circuits at the first mismatching byte; the resulting response-time delta leaks password length and matching prefix length. Because Python equality is not constant-time, an attacker with low-latency access to /login can iterate guesses and treat faster failures as partial matches. The v1.5.5 fix replaces '' with hmac.compare_digest, which runs in time independent of where the first difference occurs. The fix also addresses a related enumeration channel in lightrag/api/auth.py: previously an unknown username or a plaintext account avoided the ~100 ms bcrypt verification that {bcrypt} accounts incur, making account existence and storage format distinguishable by timing. Version 1.5.5 makes every login branch execute exactly one bcrypt verification - a real one for {bcrypt} accounts, and a fixed dummy bcrypt spec (_DUMMY_VERIFY_SPEC, cost factor 12) for unknown usernames and plaintext accounts - and moves the CPU-bound verification into asyncio.to_thread so a flood of login requests cannot block the event loop (an unauthenticated denial-of-service vector introduced by the equalization change). Note that bcrypt-prefixed credentials do not traverse the affected plaintext comparison path and were never exploitable by this specific oracle. The CPE string cpe:2.3:a:hkuds:lightrag:*:*:*:*:*:*:*:* reflects that the affected range is all releases before 1.5.5.
Know when Lightrag gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Network-reachable and unauthenticated (AV:N/PR:N), but AC:H because resolving microsecond plaintext-`==` timing deltas needs many clean low-latency samples; recovered password fully discloses the credential (C:H), no integrity/availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Authentication bypass in HKUDS LightRAG before 1.5.4 lets a remote unauthenticated attacker defeat X-API-Key protection
Cross-origin data theft in LightRAG server versions prior to 1.5.4 allows any malicious website to make authenticated, c
Server-side request forgery (CWE-918) in LightRAG before 1.5.5 lets an authenticated caller who can upload a Markdown or
Unthrottled password guessing against the LightRAG POST /login endpoint allows an unauthenticated remote attacker to sub
LightRAG's query-answer cache builds its key from the query text, mode, retrieval/token parameters, user_prompt, enable_
Stored cross-site scripting (CWE-79) in the LightRAG WebUI prior to 1.5.5 lets an attacker who can ingest a document per
LightRAG API server versions prior to 1.5.5 return raw Python exception text to network clients through error handlers i
EUVD-2026-84546
GHSA-c759-cx9p-mrwq
NVD
CVE.org
EPSS
Exploit-DB