
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-6386 is a timing attack (Observable Discrepancy) vulnerability in the authenticate_user function of the lollms_authentication.py file within the parisneo/lollms (Lord of Large Language Models) repository. It allows unauthenticated remote attackers to enumerate valid usernames and incrementally guess passwords by measuring authentication response time differences. The vulnerability affects lollms versions up to and including 11.0.0 (pip package) and is resolved in commit f78437f (version 20.1 of the repository). It was published on July 7, 2025, with a CVSS v3.0 base score of 7.5 (High) (GitHub Advisory, ENISA EUVD).
The root cause is classified as CWE-203 (Observable Discrepancy): the authenticate_user function uses Python's default string equality operator (==) for password comparison, which performs a sequential character-by-character comparison and short-circuits on the first mismatch. This non-constant-time comparison causes measurable response time differences depending on how many leading characters of the submitted password match the stored value. An unauthenticated network attacker with no user interaction required can exploit this by sending repeated authentication requests and statistically analyzing response latencies to first enumerate valid usernames and then reconstruct passwords character by character (GitHub Advisory, ENISA EUVD). The fix replaces the insecure comparison with a constant-time equivalent, as seen in commit f78437f (lollms commit).
Successful exploitation primarily impacts confidentiality (rated High), with no direct integrity or availability impact. An attacker can enumerate valid usernames and recover plaintext passwords through timing analysis, potentially gaining unauthorized access to user accounts on the lollms instance. Depending on the deployment context — particularly if lollms is exposed to the internet or used in multi-user environments — credential compromise could lead to unauthorized access to AI model interactions, stored data, or further lateral movement within the hosting environment (GitHub Advisory).
There is no public proof-of-concept exploit code and no evidence of in-the-wild exploitation at this time (GitHub Advisory). The vulnerability is exploitable remotely without authentication or user interaction, lowering the barrier for exploitation. The EPSS score is approximately 0.062% (0.00062), indicating a low near-term exploitation probability (Feedly). No threat actor attribution or CISA KEV catalog listing has been identified for this CVE.
The primary remediation is to upgrade lollms to version 20.1 or apply commit f78437f, which replaces the insecure string equality comparison with a constant-time comparison function (lollms commit, GitHub Advisory). If immediate upgrade is not possible, consider implementing rate limiting and account lockout on authentication endpoints to impede timing-based enumeration. Additional mitigations include adding random artificial delays to authentication responses, enabling multi-factor authentication, and monitoring authentication logs for anomalous patterns (ENISA EUVD).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."