CVE-2024-3429 Path Traversal in parisneo/lollms

Critical 9.8 Published Updated

Attackers can read arbitrary files and cause denial of service on Windows via path traversal in lollms.

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

What is CVE-2024-3429?

CVE-2024-3429 is a critical path traversal vulnerability in parisneo/lollms, 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 application, specifically within the `sanitize_path_from_endpoint` and `sanitize_path` functions in `lollms_core\lollms\security.py`. This vulnerability allows for arbitrary file reading when the application is running on Windows. The issue arises due to insufficient sanitization of user-supplied input, enabling attackers to bypass the path traversal protection mechanisms by crafting malicious input. Successful exploitation could lead to unauthorized access to sensitive files, information disclosure, and potentially a denial of service (DoS) condition by including numerous large or resource-intensive files. This vulnerability affects the latest version prior to 9.6.

Weakness: CWE-22, CWE-29

Which versions are affected by CVE-2024-3429?

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

PackageAffectedFixed in
lollms PyPIAll versions9.5.0
lollms PyPIAll versions9.5.0
lollms PyPIAll versions9.5.0

Products include Lollms Lollms.

How do I fix CVE-2024-3429?

Upgrade lollms to 9.5.0 or later.

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

Is CVE-2024-3429 being exploited?

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

Sources

Also known as GHSA-3x47-w4rx-6pm7, PYSEC-2026-1583.

Is CVE-2024-3429 in your software?

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

Check your SBOMs for free