# CVE-2024-6985: Lord of Large Language Models (LoLLMs) path traversal vulnerability in the api open_personality_folder endpoint

Source: https://junglewise.ai/threats/cve-2024-6985-lord-of-large-language-models-lollms-path-traversal-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-10-11  
License: CC BY 4.0 with a link back

CVE-2024-6985 · Severity: low · CVSS 3.1 · Published 2024-10-11

A path traversal vulnerability exists in the api open_personality_folder endpoint of parisneo/lollms-webui. 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.

Technologies: [lollms (PyPI)](https://junglewise.ai/threats/technologies/pypi-lollms). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2024-6985 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-6985 being exploited in the wild.

**How severe is CVE-2024-6985?** Low severity, with a CVSS score of 3.1, published 11 October 2024.

**Which products and versions are affected?** lollms (PyPI) ECOSYSTEM:introduced=0,last_affected=9.5.1, GIT:introduced=0,fixed=28ee567a9a120967215ff19b96ab7515ce469620|ECOSYSTEM:introduced=0,fixed=5.9.0.

**Is there a fix for CVE-2024-6985?** Yes. lollms (PyPI): upgrade to 5.9.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-6985?** Check whether you run lollms (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- lollms (PyPI): upgrade to 5.9.0 or later

  ```sh
  pip install "lollms>=5.9.0"
  ```


## Affected products

- lollms (PyPI) ECOSYSTEM:introduced=0,last_affected=9.5.1, GIT:introduced=0,fixed=28ee567a9a120967215ff19b96ab7515ce469620|ECOSYSTEM:introduced=0,fixed=5.9.0

## Identifiers

- CVE-2024-6985
- GHSA-6h64-g7cj-hj56
- PYSEC-2024-122

## Related threats

- [PYSEC-2026-1586 - Lollms has an Improper Access Control vulnerability](https://junglewise.ai/threats/cve-2026-1117-lollms-has-an-improper-access-control-vulnerability)
- [PYSEC-2026-1590 - Lord of Large Language Models vulnerable to Observable Discrepancy attack via authenticate_user function](https://junglewise.ai/threats/cve-2025-6386-lord-of-large-language-models-vulnerable-to-observable-discrepancy)
- [PYSEC-2026-1591 - LoLLMS Code Injection vulnerability](https://junglewise.ai/threats/cve-2024-6982-lollms-code-injection-vulnerability)
- [PYSEC-2026-1585 - Lord of Large Language Models (LoLLMs) Server path traversal vulnerability in lollms_file_system.py](https://junglewise.ai/threats/cve-2024-6971-lord-of-large-language-models-lollms-server-path-traversal)
- [PYSEC-2026-1587 - LoLLMS vulnerable to Expected Behavior Violation](https://junglewise.ai/threats/cve-2024-6281-lollms-vulnerable-to-expected-behavior-violation)
