lollms path traversal vulnerability allows overriding of config.yaml file, leading to RCE
Date: 2024-06
Affected: pip/lollms
Attack vector: path-traversal
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2024-5824
CWE: CWE-22
CVSS: 7.4 (CVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H)

A path traversal vulnerability in the `/set_personality_config` endpoint of parisneo/lollms version 9.4.0 allows an attacker to overwrite the `configs/config.yaml` file. This can lead to remote code execution by changing server configuration properties such as `force_accept_remote_access` and `turn_on_code_validation`.


Mitigations:

Architectural layers (MAESTRO):