LoLLMS vulnerable to Expected Behavior Violation
Date: 2024-07
Affected: pip/lollms
Attack vector: path-traversal
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2024-6281
CWE: CWE-22
CWE-440
CVSS: 7.3 (CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H)

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.


Mitigations:

Architectural layers (MAESTRO):