# CVE-2024-4315: LFI Vulnerability due to Lack of Path Sanitization in parisneo/lollms

- Severity: Critical 9.1 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.02%, higher than 64% of CVEs (2026-12-01)
- Published: 2024-06-12T00:40:15.768Z
- Modified: 2026-11-16T15:30:04.598Z
- Also known as: GHSA-vqwr-q6cc-c242, PYSEC-2026-403
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- parisneo parisneo/lollms: from unspecified before 9.8
- parisneo lollms: 9.5
- lollms (PyPI): before 9.5.0

## Every score

- @huntr_ai: CVSS:3.0 9.1 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- GitHub: CVSS:3.0 9.1 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- PyPA Advisory Database: CVSS:3.0 9.1 Critical `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://huntr.com/bounties/8a1b0197-2c36-4276-b92b-630a2a9bb09c> (web)
- <https://github.com/parisneo/lollms/commit/95ad36eeffc6a6be3e3f35ed35a384d768f0ecf6> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-4315> (advisory)
- <https://github.com/ParisNeo/lollms> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/lollms/PYSEC-2026-403.yaml> (web)
- <https://pypi.org/project/lollms> (package, web)
- <https://github.com/advisories/GHSA-vqwr-q6cc-c242> (advisory)

## Sources

- CVE List: [CVE-2024-4315](https://www.cve.org/CVERecord?id=CVE-2024-4315), CVE Terms of Use, modified 2025-10-15
- GitHub Advisory Database: [GHSA-vqwr-q6cc-c242](https://github.com/advisories/GHSA-vqwr-q6cc-c242), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2024-4315](https://nvd.nist.gov/vuln/detail/CVE-2024-4315), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-403](https://osv.dev/vulnerability/PYSEC-2026-403), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2024-4315 · Whole record: https://cve.day/CVE-2024-4315.json · Rebuilt by cve.day 2026-11-25T22:58:41.728Z
