CVE-2024-4078 Arbitrary Code Execution in parisneo/lollms

Critical 9.8 Published Updated

Attackers can execute arbitrary code via path traversal in the unInstall_binding endpoint by loading malicious files.

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-4078?

CVE-2024-4078 is a critical code injection vulnerability in parisneo/lollms, published on 16 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability in the parisneo/lollms, specifically in the `/unInstall_binding` endpoint, allows for arbitrary code execution due to insufficient sanitization of user input. The issue arises from the lack of path sanitization when handling the `name` parameter in the `unInstall_binding` function, allowing an attacker to traverse directories and execute arbitrary code by loading a malicious `__init__.py` file. This vulnerability affects the latest version of the software. The exploitation of this vulnerability could lead to remote code execution on the system where parisneo/lollms is deployed.

Weakness: CWE-77

Which versions are affected by CVE-2024-4078?

3 open source packages ship an affected version, including lollms.

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

How do I fix CVE-2024-4078?

Upgrade lollms to 9.5.0 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-4078 being exploited?

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

Sources

Also known as GHSA-pwc9-q4hj-pg8g, PYSEC-2026-1593.

Is CVE-2024-4078 in your software?

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

Check your SBOMs for free