{"answers":{"affected":"3 open source packages ship an affected version, including lollms. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6985 exists.","fix":"Upgrade lollms to 5.9.0 or later.","what":"CVE-2024-6985 is a medium-severity path traversal vulnerability in parisneo/lollms, published on 11 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-6985 and fix it if it is affected.\n\nWhat it is: CVE-2024-6985 is a medium-severity path traversal vulnerability in parisneo/lollms, published on 11 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6985 exists.\n\nAffected packages and fixed versions:\n- lollms (PyPI): affected all versions up to 9.5.1; no fix listed\n- lollms (PyPI): affected all versions up to 9.5.1; no fix listed\n- lollms (PyPI): affected all versions; fixed in 5.9.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-6985/ (Markdown: https://insights.sbomify.com/CVE-2024-6985/index.md)","id":"CVE-2024-6985","markdown":"https://insights.sbomify.com/CVE-2024-6985/index.md","name":"CVE-2024-6985","record":{"aliases":["GHSA-6h64-g7cj-hj56","PYSEC-2024-122"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"lollms-webui","requires_auth":"high_privilege","summary":"An attacker can read arbitrary files on the victim's computer via path traversal in the open_personality_folder API endpoint of lollms-webui.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"@huntr_ai","cpe":[{"product":"lollms","vendor":"lollms"}],"cvss":{"score":4.4,"severity":"medium","source":"cna","vector":"CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","version":"3.0"},"cwes":[{"id":"CWE-23","name":"Relative Path Traversal"}],"description":"A path traversal vulnerability exists in the api open_personality_folder endpoint of parisneo/lollms-webui. This vulnerability allows an attacker to read any folder in the personality_folder on the victim's computer, even though sanitize_path is set. The issue arises due to improper sanitization of the personality_folder parameter, which can be exploited to traverse directories and access arbitrary files.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"Path Traversal in api open_personality_folder in parisneo/lollms-webui","id":"CVE-2024-6985","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":3,"n_references":2,"next":{"headline":"Cross-site Scripting (XSS) in parisneo/lollms-webui","id":"CVE-2024-6986"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["9.5.1"],"package":"lollms","purl":null,"source":"GHSA-6h64-g7cj-hj56"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["9.5.1"],"package":"lollms","purl":"pkg:pypi/lollms","source":"GHSA-6h64-g7cj-hj56"},{"ecosystem":"PyPI","fixed":["5.9.0"],"introduced":["0"],"last_affected":[],"package":"lollms","purl":"pkg:pypi/lollms","source":"PYSEC-2024-122"}],"prev":{"headline":"Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm","id":"CVE-2024-6984"},"products":["parisneo/lollms"],"published":"2024-10-11","related":[{"cvss_score":9.8,"headline":"Improper Access Control via Weak JWT Token in parisneo/lollms","id":"CVE-2026-1114","kev_date_added":null,"published":"2026-04-07"},{"cvss_score":9.8,"headline":"Path Traversal in parisneo/lollms","id":"CVE-2024-3429","kev_date_added":null,"published":"2024-06-06"},{"cvss_score":9.6,"headline":"Stored XSS in parisneo/lollms","id":"CVE-2026-1115","kev_date_added":null,"published":"2026-04-10"},{"cvss_score":8.7,"headline":"Stored XSS in Direct Messages via Prompt Sharing in parisneo/lollms","id":"CVE-2026-12228","kev_date_added":null,"published":"2026-07-18"},{"cvss_score":8.3,"headline":"Insecure Direct Object Reference (IDOR) in parisneo/lollms","id":"CVE-2026-0562","kev_date_added":null,"published":"2026-03-29"},{"cvss_score":8.2,"headline":"Cross-site Scripting (XSS) in parisneo/lollms","id":"CVE-2026-1116","kev_date_added":null,"published":"2026-04-12"},{"cvss_score":7.6,"headline":"CSRF Vulnerability in parisneo/lollms XTTS Server","id":"CVE-2024-4499","kev_date_added":null,"published":"2024-06-24"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-10-11","vendors":["parisneo"]},"summary":"An attacker can read arbitrary files on the victim's computer via path traversal in the open_personality_folder API endpoint of lollms-webui.","url":"https://insights.sbomify.com/CVE-2024-6985/"}