CVE-2025-6386: Lollms Lord Of Large Language Models Vulnerability

HIGH
Advisory Identifier: GHSA-j5pr-vrjj-9v4h
CVSS 7.5
CWE-203
Published
Advisory Summary

CVE-2025-6386 is a HIGH (CVSS 7.5) lord of large language models vulnerability (CWE-203: Observable Discrepancy) affecting Lollms libraries in the PyPI ecosystem. The issue involves lord of large language models vulnerable to observable discrepancy attack via authenticate_user function. Remediation is available in the latest vendor maintenance releases.

CVE-2025-6386 at a Glance

CVE Identifier CVE-2025-6386
GHSA Identifier GHSA-j5pr-vrjj-9v4h
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-203: Observable Discrepancy
Affected Product Lollms
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2025-6386

To remediate this vulnerability, upgrade all affected Lollms dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

lollms fixed: Latest secure release
pip install lollms>=Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show lollms

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-6386, inspect your installed packages using pip:

pip show lollms

Analyze the terminal output to locate any version of Lollms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: The pip show lollms command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-203: Observable Discrepancy, where the product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor. In Lollms, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

The parisneo/lollms repository is affected by a timing attack vulnerability in the `authenticate_user` function within the `lollms_authentication.py` file. This vulnerability allows attackers to enumerate valid usernames and guess passwords incrementally by analyzing response time differences. The affected version is the latest, and the issue is resolved in commit f78437f. The vulnerability arises from the use of Python's default string equality operator for password comparison, which compares characters sequentially and exits on the first mismatch, leading to variable response times based on the number of matching initial characters.

CVE-2025-6386 Affected Lollms Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
lollms
PyPI
≤ 11.0.0

References

Frequently Asked Questions

What is CVE-2025-6386?
CVE-2025-6386 is a security vulnerability in Lollms involving Lord of Large Language Models vulnerable to Observable Discrepancy attack via authenticate_user function under CWE-203: Observable Discrepancy.
Which Lollms versions are affected?
Affected versions include releases prior to current release patches across affected packages: lollms.
What version fixes CVE-2025-6386?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is lollms affected?
Yes, lollms is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-6386?
CVE-2025-6386 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2025-6386?
CVE-2025-6386 is classified under CWE-203: Observable Discrepancy (The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor.).
How can I check PyPI dependencies for CVE-2025-6386?
Run the dependency tree command: 'pip show lollms'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j5pr-vrjj-9v4h",
  "modified" : "2025-07-08T18:44:08Z",
  "published" : "2025-07-07T12:30:23Z",
  "aliases" : [ "CVE-2025-6386" ],
  "summary" : "Lord of Large Language Models vulnerable to Observable Discrepancy attack via authenticate_user function",
  "details" : "The parisneo/lollms repository is affected by a timing attack vulnerability in the `authenticate_user` function within the `lollms_authentication.py` file. This vulnerability allows attackers to enumerate valid usernames and guess passwords incrementally by analyzing response time differences. The affected version is the latest, and the issue is resolved in commit f78437f. The vulnerability arises from the use of Python's default string equality operator for password comparison, which compares characters sequentially and exits on the first mismatch, leading to variable response times based on the number of matching initial characters.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "lollms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "11.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-6386"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/parisneo/lollms/commit/f78437f7b5aa39a78c6201912faf4e0645a38c48"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ParisNeo/lollms"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.com/bounties/6da05485-d219-4f18-9ffc-991053524b67"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-203" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-08T18:44:08Z",
    "nvd_published_at" : "2025-07-07T10:15:29Z"
  }
}