CVE-2024-4315
JSON

9.1critical

LFI Vulnerability due to Lack of Path Sanitization in parisneo/lollms

Severity
9.1critical CVSS:3.0 by @huntr_ai
Exploit likelihood
1.02% (higher than 64% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-vqwr-q6cc-c242PYSEC-2026-403

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.

Affected

Product or packageVersionsReported by
parisneo parisneo/lollmsfrom unspecified before 9.8CVE List
parisneo lollms9.5CVE List
lollms (PyPI)before 9.5.0GitHub Advisory Database, PyPA Advisory Database

All scores

@huntr_ai9.1critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
GitHub9.1critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
PyPA Advisory Database9.1critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H

Classification

CWE-22

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

parisneo/lollms versión 9.5 es vulnerable a ataques de inclusión de archivos locales (LFI) debido a una sanitización insuficiente de la ruta. La función `sanitize_path_from_endpoint` no sanitiza adecuadamente las rutas de estilo Windows (barra invertida `\`), lo que permite a los atacantes realizar ataques de directory traversal en sistemas Windows. Esta vulnerabilidad se puede explotar a través de varias rutas, incluidas `personalities` y `/del_preset`, para leer o eliminar cualquier archivo en el sistema de archivos de Windows, comprometiendo la disponibilidad del sistema.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-4315 changed 2025-10-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-vqwr-q6cc-c242 changed 2026-11-16CC-BY-4.0
NVDCVE-2024-4315 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-403 changed 2026-07-01CC-BY-4.0