CVE-2024-4315
parisneo/lollms version 9.5 is vulnerable to Local File Inclusion …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/parisneo/lollms/commit/95ad36eeffc6a6be3e3f35ed35a384d768f0ecf6
- huntr.com/bounties/8a1b0197-2c36-4276-b92b-630a2a9bb09c
- nvd.nist.gov/vuln/detail/CVE-2024-4315
- github.com/advisories/GHSA-vqwr-q6cc-c242
- github.com/pypa/advisory-database/tree/main/vulns/lollms/PYSEC-2026-403.yaml
- pypi.org/project/lollms
- nvd.nist.gov/vuln/detail/CVE-2024-4315
- cve.org/CVERecord?id=CVE-2024-4315
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.