CVE-2024-9920 Unrestricted File Upload and Execution in parisneo/lollms-webui

Medium 6.6 Published Updated

Attackers can upload malicious files and execute them via the open_file API, leading to remote code execution in Lollms Web UI.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2024-9920?

CVE-2024-9920 is a medium-severity vulnerability in parisneo/lollms-webui, published on 20 Mar 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In version v12 of parisneo/lollms-webui, the 'Send file to AL' function allows uploading files with various extensions, including potentially dangerous ones like .py, .sh, .bat, and more. Attackers can exploit this by uploading files with malicious content and then using the '/open_file' API endpoint to execute these files. The vulnerability arises from the use of 'subprocess.Popen' to open files without proper validation, leading to potential remote code execution.

Weakness: CWE-434

Which versions are affected by CVE-2024-9920?

It affects 1 product.

Products include Lollms Lollms Web Ui.

How do I fix CVE-2024-9920?

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

Is CVE-2024-9920 being exploited?

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

Sources

Also known as GHSA-54c7-72v9-gm27.

Is CVE-2024-9920 in your software?

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

Check your SBOMs for free