# CVE-2024-4881: LoLLMS Path Traversal vulnerability

Source: https://junglewise.ai/threats/cve-2024-4881-lollms-path-traversal-vulnerability  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-06-06  
License: CC BY 4.0 with a link back

CVE-2024-4881 · Severity: low · CVSS 3.1 · Published 2024-06-06

A path traversal vulnerability exists in the parisneo/lollms application, affecting version 9.4.0 and potentially earlier versions, but fixed in version 5.9.0. The vulnerability arises due to improper validation of file paths between Windows and Linux environments, allowing attackers to traverse beyond the intended directory and read any file on the Windows system. Specifically, the application fails to adequately sanitize file paths containing backslashes (`\`), which can be exploited to access the root directory and read, or even delete, sensitive files. This issue was discovered in the context of the `/user_infos` endpoint, where a crafted request using backslashes to reference a file (e.g., `\windows\win.ini`) could result in unauthorized file access. The impact of this vulnerability includes the potential for attackers to access sensitive information such as environment variables, database files, and configuration files, which could lead to further compromise of the system.

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

## Quick answers

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

**How severe is CVE-2024-4881?** Low severity, with a CVSS score of 3.1, published 6 June 2024.

**Which products and versions are affected?** lollms (PyPI) ECOSYSTEM:introduced=0,fixed=9.5.0, GIT:introduced=0,fixed=95ad36eeffc6a6be3e3f35ed35a384d768f0ecf6|ECOSYSTEM:introduced=0,fixed=5.9.0.

**Is there a fix for CVE-2024-4881?** Yes. lollms (PyPI): upgrade to 5.9.0, 9.5.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-4881?** 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, 9.5.0 or later

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


## Affected products

- lollms (PyPI) ECOSYSTEM:introduced=0,fixed=9.5.0, GIT:introduced=0,fixed=95ad36eeffc6a6be3e3f35ed35a384d768f0ecf6|ECOSYSTEM:introduced=0,fixed=5.9.0

## Identifiers

- CVE-2024-4881
- GHSA-p8h7-c8gw-6x8c
- PYSEC-2024-108

## 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)
