CVE-2024-4315 json
LFI Vulnerability due to Lack of Path Sanitization in parisneo/lollms
published 2024-06-12 2 y ago modified 2026-07-01 4 mo ago also GHSA-vqwr-q6cc-c242 , PYSEC-2026-403 , EUVD-2024-2181
- cvss
- 9.1
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 63%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
1.02% chance of exploitation in the next 30 days, higher than 63% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 9.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| OSV | 3.0 | 9.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| GitHub | 3.0 | 9.1 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | lollms | <9.5.0 |
9.5.0 |
Affected products
- parisneo parisneo/lollms
- parisneo lollms
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/parisneo/lollms/commit/95ad36eeffc6a6be3e3f35ed35a384d768f0ecf6
web
-
huntr.com
/bounties/8a1b0197-2c36-4276-b92b-630a2a9bb09c
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-4315
advisory
-
github.com
/ParisNeo/lollms
package
-
pypi.org
/project/lollms
package
-
github.com
/advisories/GHSA-vqwr-q6cc-c242
advisory
Sources
- CVE List CVE-2024-4315
- GitHub Advisory GHSA-vqwr-q6cc-c242
- NVD CVE-2024-4315
- OSV PYSEC-2026-403
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.