INCIDENT MAP

Browse / AI Framework and Platform Flaws / CVE-2024-6971

Lord of Large Language Models (LoLLMs) Server path traversal vulnerability in lollms_file_system.py

CVE-2024-6971 ยท 2024-10-11 low

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

Source: GitHub Advisory Database, used under CC BY 4.0.