Browse / AI Framework and Platform Flaws / CVE-2024-6971
Lord of Large Language Models (LoLLMs) Server path traversal vulnerability in lollms_file_system.py
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Path traversal and file access
- Affected
- lollms (PyPI)
- CVSS
- CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:L
- EPSS
- 0.3% chance of exploitation in 30 days
How it works, in short
RAG database endpoints skip path sanitisation, so a caller can vectorise SQLite files from any directory on the host. (Our summary, written by a model. The source text is below.)
Details
A path traversal vulnerability exists in the ParisNeo/lollms repository, specifically in the lollms_file_system.py file. The functions add_rag_database, toggle_mount_rag_database, and vectorize_folder do not implement security measures such as sanitize_path_from_endpoint or sanitize_path. This allows an attacker to perform vectorize operations on .sqlite files in any directory on the victim's computer, potentially installing multiple packages and causing a crash.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-6971
- https://github.com/ParisNeo/lollms/commit/aeace796d861e922133b769710019608a6363264
- https://github.com/ParisNeo/lollms
- https://huntr.com/bounties/fbfe7cd0-99fb-4305-bd07-8b573364109e
Source: GitHub Advisory Database, used under CC BY 4.0.