CVE-2024-6281: Lollms LoLLMS Vulnerable To Expected Behavior Vulnerability
HIGHCVE-2024-6281 is a HIGH (CVSS 7.3) lollms vulnerable to expected behavior vulnerability (CWE-440: Expected Behavior Violation) affecting Lollms libraries in the PyPI ecosystem. The issue involves lollms vulnerable to expected behavior violation. Remediation is available by upgrading affected packages to version 9.5.1.
CVE-2024-6281 at a Glance
Security Impact
CVSS: 7.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H).
How to Fix CVE-2024-6281
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>=9.5.1
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-6281, 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 9.5.1), 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-440: Expected Behavior Violation, where a feature, api, or function does not perform according to its specification. 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-6281 Affected Lollms Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lollms
|
PyPI |
< 9.5.1
|
9.5.1
|
References
Frequently Asked Questions
What is CVE-2024-6281?
Which Lollms versions are affected?
What version fixes CVE-2024-6281?
Is lollms affected?
What is the CVSS score of CVE-2024-6281?
What CWE is associated with CVE-2024-6281?
How can I check PyPI dependencies for CVE-2024-6281?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-8mrm-r7h3-c3hj",
"modified" : "2024-09-13T19:34:25Z",
"published" : "2024-07-20T06:30:35Z",
"aliases" : [ "CVE-2024-6281" ],
"summary" : "LoLLMS vulnerable to Expected Behavior Violation",
"details" : "A path traversal vulnerability exists in the `apply_settings` function of parisneo/lollms versions prior to 9.5.1. The `sanitize_path` function does not adequately secure the `discussion_db_name` parameter, allowing attackers to manipulate the path and potentially write to important system folders.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "lollms"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "9.5.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-6281"
}, {
"type" : "WEB",
"url" : "https://github.com/parisneo/lollms/commit/26a3ff35acf152b49e1087d5698ad4864c7b6092"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/parisneo/lollms"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/0a62f2fb-4e62-4128-9dc4-e8f1d959ac61"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-440" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2024-09-13T19:34:25Z",
"nvd_published_at" : "2024-07-20T04:15:05Z"
}
}