---
id: "CVE-2024-4315"
page: "https://infrastack.ai/live/CVE-2024-4315"
kind: "vulnerability"
aliases: ["CVE-2024-4315", "GHSA-vqwr-q6cc-c242"]
title: "parisneo/lollms Local File Inclusion (LFI) attack"
severity: "critical"
cvss: 9.1
epss: 0.01024
exploited: false
status: "open"
category: "ai-tooling"
products: [{"name": "lollms", "fixed": ["9.5.0"], "affected": "< 9.5.0", "ecosystem": "pypi"}]
ecosystems: ["pypi"]
tags: ["ai-apps", "ai-tooling", "cwe-22", "lollms", "python", "windows"]
not_affected_if: ["linux-only", "version-9.5.0-or-later"]
published_at: "2024-06-12T01:15:49+00:00"
first_seen_at: "2026-11-16T15:22:27+00:00"
updated_at: "2026-11-16T15:37:59+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-vqwr-q6cc-c242", "first_seen_at": "2026-11-16T15:22:27+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-4315", "first_seen_at": "2026-11-16T15:37:59+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.01024, "url": "https://api.first.org/data/v1/epss?cve=CVE-2024-4315"}]
---

# parisneo/lollms Local File Inclusion (LFI) attack

Link for people: https://infrastack.ai/live/CVE-2024-4315 (this .md is for agents)

lollms, a Python tool for running local language models, fails to sanitize Windows-style backslash paths in its endpoints. An attacker can use directory traversal to read or delete any file on a Windows server.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:lollms affected < 9.5.0 fixed 9.5.0

## How to check

- Check the installed version with `pip show lollms`; versions below `9.5.0` are affected.
- Check whether the host runs on Windows and whether lollms is reachable from the network.

## Fix

- lollms: move to `9.5.0` or later.

## Timeline

- 2026-11-16T15:22:27+00:00 ghsa https://github.com/advisories/GHSA-vqwr-q6cc-c242
- 2026-11-16T15:37:59+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2024-4315

## Documents

- [fix] Patch: github.com https://github.com/parisneo/lollms/commit/95ad36eeffc6a6be3e3f35ed35a384d768f0ecf6

## From the sources

parisneo/lollms version 9.5 is vulnerable to Local File Inclusion (LFI) attacks due to insufficient path sanitization. The `sanitize_path_from_endpoint` function fails to properly sanitize Windows-style paths (backward slash `\`), allowing attackers to perform directory traversal attacks on Windows systems. This vulnerability can be exploited through various routes, including `personalities` and `/del_preset`, to read or delete any file on the Windows filesystem, compromising the system's availability.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
