CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2024 · Lollms

CVE-2024-4320
Lollms Web Ui vulnerability

A remote code execution (RCE) vulnerability exists in the '/install_extension' endpoint of the parisneo/lollms-webui application, specifically within the `@router.post("/install_extension")` route handler. The vulnerability arises due to improper handling of the `name` parameter in the `ExtensionBuilder().build_extension()` method, which allows for local file inclusion (LFI) leading to arbitrary code execution. An attacker can exploit this vulnerability by crafting a malicious `name` parameter that causes the server to load and execute a `__init__.py` file from an arbitrary location, such as the upload directory for discussions. This vulnerability affects the latest version of parisneo/lollms-webui and can lead to remote code execution without requiring user interaction, especially when the application is exposed to an external endpoint or operated in headless mode.

High priority: this vulnerability is rated critical and can be attacked over the network without a login.

Affected products

Lollms Web Ui. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Lollms Web Ui runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Lollms products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.