Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-2356— Remote Code Execution due to LFI in '/reinstall_extension' in parisneo/lollms-webui

Quick assessment

Affected
parisneo parisneo/lollms-webui
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

LoLLMs WEBUI是Saifeddine ALOUI个人开发者的一个支持多模型和多模态集成的大模型Web用户界面。 LoLLMs WEBUI存在安全漏洞,该漏洞源于/reinstall_extension端点中name参数存在本地文件包含,可能导致加载和执行任意Python文件,进而引发远程代码执行。

AI Predicted 9.8 Difficulty: Easy EPSS 0.90% · P58
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-2356

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Remote Code Execution due to LFI in '/reinstall_extension' in parisneo/lollms-webui
Source: CVE Program / CVE List V5
Vulnerability Description
A Local File Inclusion (LFI) vulnerability exists in the '/reinstall_extension' endpoint of the parisneo/lollms-webui application, specifically within the `name` parameter of the `@router.post("/reinstall_extension")` route. This vulnerability allows attackers to inject a malicious `name` parameter, leading to the server loading and executing arbitrary Python files from the upload directory for discussions. This issue arises due to the concatenation of `data.name` directly with `lollmsElfServer.lollms_paths.extensions_zoo_path` and its use as an argument for `ExtensionBuilder().build_extension()`. The server's handling of the `__init__.py` file in arbitrary locations, facilitated by `importlib.machinery.SourceFileLoader`, enables the execution of arbitrary code, such as command execution or creating a reverse-shell connection. This vulnerability affects the latest version of parisneo/lollms-webui and can lead to Remote Code Execution (RCE) when the application is exposed to an external endpoint or the UI, especially when bound to `0.0.0.0` or in `headless mode`. No user interaction is required for exploitation.
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
路径遍历:’..filename’
Source: CVE Program / CVE List V5
Vulnerability Title
LoLLMs WEBUI 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
LoLLMs WEBUI是Saifeddine ALOUI个人开发者的一个支持多模型和多模态集成的大模型Web用户界面。 LoLLMs WEBUI存在安全漏洞,该漏洞源于/reinstall_extension端点中name参数存在本地文件包含,可能导致加载和执行任意Python文件,进而引发远程代码执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
parisneo parisneo/lollms-webui unspecified ~ v9.5 -

II. Public POCs for CVE-2024-2356

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-2356

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-2356 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2024-2356

No comments yet


Leave a comment