CVE-2024-6985: Lollms Path Traversal Vulnerability
MODERATECVE-2024-6985 is a MODERATE (CVSS 4.4) path traversal vulnerability (CWE-23: Relative Path Traversal) affecting Lollms libraries in the PyPI ecosystem. The issue involves lord of large language models (lollms) path traversal vulnerability in the api open_personality_folder endpoint. Remediation is available in the latest vendor maintenance releases.
CVE-2024-6985 at a Glance
Security Impact
CVSS: 4.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N).
How to Fix CVE-2024-6985
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.
pip install lollms>=Latest secure release
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-2024-6985, 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-23: Relative Path Traversal, where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize sequences such as ".." that can resolve to a location that is outside of that directory. 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
CVE-2024-6985 Affected Lollms Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lollms
|
PyPI |
≤ 9.5.1
|
|
References
Frequently Asked Questions
What is CVE-2024-6985?
Which Lollms versions are affected?
What version fixes CVE-2024-6985?
Is lollms affected?
What is the CVSS score of CVE-2024-6985?
What CWE is associated with CVE-2024-6985?
How can I check PyPI dependencies for CVE-2024-6985?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6h64-g7cj-hj56",
"modified" : "2024-10-11T19:44:03Z",
"published" : "2024-10-11T18:32:50Z",
"aliases" : [ "CVE-2024-6985" ],
"summary" : "Lord of Large Language Models (LoLLMs) path traversal vulnerability in the api open_personality_folder endpoint",
"details" : "A path traversal vulnerability exists in the api open_personality_folder endpoint of parisneo/lollms. This vulnerability allows an attacker to read any folder in the personality_folder on the victim's computer, even though sanitize_path is set. The issue arises due to improper sanitization of the personality_folder parameter, which can be exploited to traverse directories and access arbitrary files.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "lollms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "9.5.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-6985"
}, {
"type" : "WEB",
"url" : "https://github.com/parisneo/lollms/commit/28ee567a9a120967215ff19b96ab7515ce469620"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ParisNeo/lollms"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/79c11579-47d8-4e68-8466-b47c3bf5ef6a"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-23" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-10-11T19:44:03Z",
"nvd_published_at" : "2024-10-11T16:15:14Z"
}
}