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.
https://huntr.com/bounties/0a62f2fb-4e62-4128-9dc4-e8f1d959ac61
https://github.com/parisneo/lollms/commit/26a3ff35acf152b49e1087d5698ad4864c7b6092
Published: 2024-07-20
Updated: 2024-07-22
Base Score: 6.1
Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:C
Severity: Medium
Base Score: 7.3
Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Severity: High
Base Score: 7
Vector: 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
Severity: High
EPSS: 0.0004