Skip to main content

LightRAG EUVDEUVD-2026-84546

| CVE-2026-85725 MEDIUM
Observable Timing Discrepancy (CWE-208)
2026-09-22 GitHub_M GHSA-c759-cx9p-mrwq
5.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach /login over low-latency network
  2. Delivery
    Submit timed password guesses
  3. Exploit
    Measure == short-circuit timing delta
  4. Execution
    Recover plaintext password char-by-char
  5. Impact
    Authenticate 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 == short-circuit, which is microsecond-scale and requires many statistically-clean samples over a low-latency path to resolve character-by-character, plus a target password short/simple enough to recover before rate limits or noise defeat the attack. No EPSS score, no CISA KEV listing, and no public POC are provided, so exploitation status is 'no public exploit identified at time of analysis'; there is no signal of real-world exploitation. Critically, the flaw only applies to deployments that store plaintext AUTH_ACCOUNTS values - bcrypt-prefixed passwords traverse a different code path and are explicitly unaffected - so the exposed population is a subset of an already niche product. Net: real and worth patching, but a routine-priority fix rather than an urgent one.

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 == comparison returns faster on an earlier-mismatching byte to recover the password length and then each character in turn. Once the plaintext password is reconstructed the attacker logs in and gains authenticated access to documents, the knowledge graph, and admin operations. No public exploit code is identified, and the high measurement precision required (AC:H) makes this slow and noise-sensitive in practice.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

LightRAG < 1.5.5

Affected Packages

pypi lightrag-hku fix: 1.5.5
euvd lightrag fix: 1.5.5

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

Vendor (GitHub_M) PRIMARY 5.9 MEDIUM
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 5.9 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Sep 22, 2026 - 17:17 EUVD

DescriptionCVE.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

EPSS Score
0.4%
Top 62% exploitable
Prevalence
Low
niche open-source Python RAG framework, modest production footprint
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy