CVE-2024-6971 Path Traversal in parisneo/lollms-webui

Low 3.4 Published Updated

Attackers can exploit path traversal to vectorize SQLite files in arbitrary directories, potentially causing crashes or unauthorized data access.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-6971?

CVE-2024-6971 is a low-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.

Official description

A path traversal vulnerability exists in the parisneo/lollms-webui 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.

Weakness: CWE-22

Which versions are affected by CVE-2024-6971?

3 open source packages ship an affected version, including lollms. It affects 1 product.

PackageAffectedFixed in
lollms PyPIAll versions to 9.5.1None
lollms PyPIAll versions to 9.5.1None
lollms PyPIAll versions to 9.5.1None

Products include Lollms Lollms-Webui.

How do I fix CVE-2024-6971?

No fix has been published for CVE-2024-6971 yet. Limit exposure of the affected software until one is available.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-6971 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6971 exists.

Sources

Also known as GHSA-7pgr-32fx-c6x9, PYSEC-2026-1585.

Is CVE-2024-6971 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free