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

High 7.5 Published Updated

Attackers can read arbitrary files on Windows systems via path traversal in the LoLLMs Web UI application.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-2548?

CVE-2024-2548 is a high-severity path traversal vulnerability in parisneo/lollms-webui, published on 6 Jun 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A path traversal vulnerability exists in the parisneo/lollms-webui application, specifically within the `lollms_core/lollms/server/endpoints/lollms_binding_files_server.py` and `lollms_core/lollms/security.py` files. Due to inadequate validation of file paths between Windows and Linux environments using `Path(path).is_absolute()`, attackers can exploit this flaw to read any file on the system. This issue affects the latest version of LoLLMs running on the Windows platform. The vulnerability is triggered when an attacker sends a specially crafted request to the `/user_infos/{path:path}` endpoint, allowing the reading of arbitrary files, as demonstrated with the `win.ini` file. The issue has been addressed in version 9.5 of the software.

Weakness: CWE-22, CWE-36

Which versions are affected by CVE-2024-2548?

It affects 1 product.

Products include Lollms Lollms Web Ui.

How do I fix CVE-2024-2548?

No fix has been published for CVE-2024-2548 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-2548 being exploited?

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

Sources

Also known as GHSA-4qvc-c86c-g9qp.

Is CVE-2024-2548 in your software?

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

Check your SBOMs for free