{"id":"CVE-2024-4315","state":"PUBLISHED","title":"LFI Vulnerability due to Lack of Path Sanitization in parisneo/lollms","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.","publishedAt":"2024-06-12T00:40:15.768Z","updatedAt":"2025-10-15T12:50:24.257Z","severity":{"score":9.1,"label":"Critical","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","source":"@huntr_ai"},"assigner":"@huntr_ai","products":["parisneo parisneo/lollms"],"affected":[{"vendor":"parisneo","product":"parisneo/lollms","versions":[{"version":"unspecified","status":"affected","lessThan":"9.8","versionType":"custom"}]}],"references":["https://huntr.com/bounties/8a1b0197-2c36-4276-b92b-630a2a9bb09c","https://github.com/parisneo/lollms/commit/95ad36eeffc6a6be3e3f35ed35a384d768f0ecf6"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/4xxx/CVE-2024-4315.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-4315","state":"PUBLISHED","datePublished":"2024-06-12T00:40:15.768Z","dateUpdated":"2025-10-15T12:50:24.257Z","assignerShortName":"@huntr_ai","assignerOrgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateReserved":"2024-04-29T16:15:21.215Z"},"containers":{"cna":{"title":"LFI Vulnerability due to Lack of Path Sanitization in parisneo/lollms","descriptions":[{"lang":"en","value":"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":[{"vendor":"parisneo","product":"parisneo/lollms","versions":[{"version":"unspecified","status":"affected","lessThan":"9.8","versionType":"custom"}]}],"references":[{"url":"https://huntr.com/bounties/8a1b0197-2c36-4276-b92b-630a2a9bb09c"},{"url":"https://github.com/parisneo/lollms/commit/95ad36eeffc6a6be3e3f35ed35a384d768f0ecf6"}],"metrics":[{"cvssV3_0":{"version":"3.0","attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","baseScore":9.1,"baseSeverity":"CRITICAL"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","type":"CWE","lang":"en","description":"CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}],"providerMetadata":{"shortName":"@huntr_ai","orgId":"c09c270a-b464-47c1-9133-acb35b22c19a","dateUpdated":"2025-10-15T12:50:24.257Z"},"source":{"advisory":"8a1b0197-2c36-4276-b92b-630a2a9bb09c","discovery":"EXTERNAL"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"parisneo","product":"lollms","defaultStatus":"unknown","versions":[{"version":"9.5","status":"affected"}],"cpes":["cpe:2.3:a:parisneo:lollms:9.5:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-26T14:27:21.754289Z","id":"CVE-2024-4315","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-26T14:28:57.314Z"}},{"title":"CVE Program Container","references":[{"url":"https://huntr.com/bounties/8a1b0197-2c36-4276-b92b-630a2a9bb09c","tags":["x_transferred"]},{"url":"https://github.com/parisneo/lollms/commit/95ad36eeffc6a6be3e3f35ed35a384d768f0ecf6","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-01T20:40:47.104Z"}}]}}}