GitHub Advisoryadvisory · PyPI

GHSA-vqwr-q6cc-c242 parisneo/lollms Local File Inclusion (LFI) attack

CRITICAL Published 2024-06-12 Modified 2024-06-12 Official page ↗
Aliases
CVE-2024-4315
Ecosystem
PyPI
Packages
lollms
Severity
Critical
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Weaknesses
CWE-22
Reviewed
2024-06-12

Affected packages

• PyPI lollms: < 9.5.0 → fixed in 9.5.0

Description

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.

Related

Alias · CVE (1)

  • CVE-2024-4315 parisneo/lollms version 9.5 is vulnerable to Local File Inclusion (LFI) attacks due to insufficient path sanitization. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References