{"id":"CVE-2024-4315","published":"2024-06-12T00:40:15Z","modified":"2025-10-15T12:50:24Z","title":"LFI Vulnerability due to Lack of Path Sanitization in parisneo/lollms","vendor":"parisneo","product":"parisneo/lollms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01024,"percentile":0.64372,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://huntr.com/bounties/8a1b0197-2c36-4276-b92b-630a2a9bb09c","tags":[]},{"url":"https://github.com/parisneo/lollms/commit/95ad36eeffc6a6be3e3f35ed35a384d768f0ecf6","tags":[]}],"priority":{"score":19.2,"factors":[{"name":"EPSS percentile","points":12.87},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"parisneo","affectedVersions":[{"vendor":"parisneo","product":"parisneo/lollms","versions":[">= unspecified, < 9.8"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-06-26T14:27:21.754289Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"lollms","vulnerableRanges":["<9.5.0"],"patched":["9.5.0"],"from":["GHSA-vqwr-q6cc-c242","PYSEC-2026-403"],"provenance":"source"}],"summary":{"text":"A Local File Inclusion flaw in parisneo/lollms (version 9.5) stems from the sanitize_path_from_endpoint function, which fails to neutralise Windows-style backslash path separators. An unauthenticated remote attacker who can reach the affected endpoints, such as personalities and /del_preset, can perform directory traversal on Windows hosts to read or delete arbitrary files, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:17Z"},"euvd":{"id":"EUVD-2024-2181","exploited":false,"provenance":"source"}}