{"id":"CVE-2024-4315","kind":"vulnerability","aliases":["CVE-2024-4315","GHSA-vqwr-q6cc-c242"],"related":[],"title":"parisneo/lollms Local File Inclusion (LFI) attack","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.","summary":"lollms, a Python tool for running local language models, fails to sanitize Windows-style backslash paths in its endpoints. An attacker can use directory traversal to read or delete any file on a Windows server.","severity":"critical","cvss":9.1,"epss":0.01024,"exploited":false,"exploited_at":null,"products":[{"name":"lollms","fixed":["9.5.0"],"affected":"< 9.5.0","ecosystem":"pypi"}],"ecosystems":["pypi"],"tags":["ai-apps","ai-tooling","cwe-22","lollms","python","windows"],"not_affected_if":["linux-only","version-9.5.0-or-later"],"how_to_check":"- Check the installed version with `pip show lollms`; versions below `9.5.0` are affected.\n- Check whether the host runs on Windows and whether lollms is reachable from the network.","fix":"- lollms: move to `9.5.0` or later.","status":"open","published_at":"2024-06-12T01:15:49+00:00","first_seen_at":"2026-11-16T15:22:27+00:00","triaged_at":"2026-11-16T15:23:24+00:00","updated_at":"2026-11-16T15:37:59+00:00","category":"ai-tooling","confidence":0.8,"triage":{"at":"2026-11-16T15:23:24Z","model":"claude-haiku-5-5","output":{"fix":"- lollms: move to `9.5.0` or later.","reach":"network","title":"lollms: path traversal lets attackers read or delete Windows files","impact":"high","summary":"lollms, a Python tool for running local language models, fails to sanitize Windows-style backslash paths in its endpoints. An attacker can use directory traversal to read or delete any file on a Windows server.","audience":"developers","category":"ai-tooling","nicknames":[],"who_cares":["lollms","python","windows","ai-apps"],"confidence":0.8,"fix_status":"available","needs_auth":"unknown","worst_case":"attacker reads or deletes arbitrary files on Windows server","analyst_note":"","how_to_check":"- Check the installed version with `pip show lollms`; versions below `9.5.0` are affected.\n- Check whether the host runs on Windows and whether lollms is reachable from the network.","plain_action":"","product_name":"","needs_analyst":false,"not_affected_if":["linux-only","version-9.5.0-or-later"],"who_is_affected":"Teams running lollms on Windows, especially where its web endpoints such as personalities and preset deletion are reachable by other users or the network. Linux-only deployments are not described as affected by the sources. Teams on `9.5.0` or later can skip it.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"critical"},"cost_usd":0.000715,"input_tokens":4676,"output_tokens":495,"severity_before":"critical"},"analyst_status":null,"analyst_note":null,"search":"'-2024':8A,16A '-22':26B '-4315':9A,17A '/del_preset':119C '9.5':68C 'ai':20B,23B 'ai-app':19B 'ai-tool':22B 'allow':98C 'app':21B 'attack':6A,51B,76C,99C,104C 'avail':134C 'backslash':45B 'backward':96C 'c242':14A 'compromis':130C 'cve':7A,15A 'cwe':25B 'delet':59B,123C 'directori':54B,102C 'due':77C 'endpoint':49B,86C 'exploit':112C 'fail':39B,88C 'file':3A,61B,73C,125C 'filesystem':129C 'function':87C 'ghsa':11A 'ghsa-vqwr-q6cc-c242':10A 'includ':116C 'inclus':4A,74C 'insuffici':79C 'languag':37B 'lfi':5A,75C 'local':2A,36B,72C 'lollm':27B,30B 'lollms':18A 'model':38B 'parisneo/lollms':1A,66C 'path':46B,80C,84C,95C 'perform':101C 'person':117C 'proper':90C 'python':28B,32B 'q6cc':13A 'read':57B,121C 'rout':115C 'run':35B 'sanit':41B,81C,83C,91C 'server':65B 'slash':97C 'style':44B,94C 'system':107C,132C 'tool':24B,33B 'travers':55B,103C 'use':53B 'various':114C 'version':67C 'vqwr':12A 'vulner':70C,109C 'window':29B,43B,64B,93C,106C,128C 'windows-styl':42B,92C","nicknames":[],"mitigations":[],"who_affected":"Teams running lollms on Windows, especially where its web endpoints such as personalities and preset deletion are reachable by other users or the network. Linux-only deployments are not described as affected by the sources. Teams on `9.5.0` or later can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":["lollms"],"ptokens":["lollms"],"labels":["aiapps","aitooling","critical","cwe22","lollms","pypi","python","windows"],"campaign_type":null,"search_a":"'-2024':8A,16A '-4315':9A,17A 'attack':6A 'c242':14A 'cve':7A,15A 'file':3A 'ghsa':11A 'ghsa-vqwr-q6cc-c242':10A 'inclus':4A 'lfi':5A 'local':2A 'lollms':18A 'parisneo/lollms':1A 'q6cc':13A 'vqwr':12A","search_b":"'-22':26B 'ai':20B,23B 'ai-app':19B 'ai-tool':22B 'app':21B 'attack':51B 'backslash':45B 'cwe':25B 'delet':59B 'directori':54B 'endpoint':49B 'fail':39B 'file':61B 'languag':37B 'local':36B 'lollm':27B,30B 'model':38B 'path':46B 'python':28B,32B 'read':57B 'run':35B 'sanit':41B 'server':65B 'style':44B 'tool':24B,33B 'travers':55B 'use':53B 'window':29B,43B,64B 'windows-styl':42B","search_c":"'/del_preset':119C '9.5':68C 'allow':98C 'attack':76C,99C,104C 'avail':134C 'backward':96C 'compromis':130C 'delet':123C 'directori':102C 'due':77C 'endpoint':86C 'exploit':112C 'fail':88C 'file':73C,125C 'filesystem':129C 'function':87C 'includ':116C 'inclus':74C 'insuffici':79C 'lfi':75C 'local':72C 'parisneo/lollms':66C 'path':80C,84C,95C 'perform':101C 'person':117C 'proper':90C 'read':121C 'rout':115C 'sanit':81C,83C,91C 'slash':97C 'style':94C 'system':107C,132C 'travers':103C 'various':114C 'version':67C 'vulner':70C,109C 'window':93C,106C,128C 'windows-styl':92C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2024-06-12T01:15:49+00:00","kev":null,"cvss_vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H","cvss_by":"GitHub","poc_count":0,"sources":[{"source":"ghsa","external_id":"GHSA-vqwr-q6cc-c242","url":"https://github.com/advisories/GHSA-vqwr-q6cc-c242","severity":"critical","published_at":"2024-06-12T03:31:15+00:00","modified_at":"2026-11-16T15:20:16+00:00","first_seen_at":"2026-11-16T15:22:27+00:00","fetched_at":"2026-11-16T15:26:32+00:00","note":null},{"source":"nvd","external_id":"CVE-2024-4315","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-4315","severity":null,"published_at":"2024-06-12T01:15:49+00:00","modified_at":"2026-06-17T08:01:39+00:00","first_seen_at":"2026-11-16T15:37:59+00:00","fetched_at":"2026-11-16T15:37:59+00:00","note":null}],"documents":[{"id":170370,"url":"https://github.com/parisneo/lollms/commit/95ad36eeffc6a6be3e3f35ed35a384d768f0ecf6","title":"Patch: github.com","kind":"other","source":"ghsa","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"}],"disclosures":[],"exploit_sources":[{"type":"epss","score":0.01024,"url":"https://api.first.org/data/v1/epss?cve=CVE-2024-4315"}],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}