CVE-2024-2356
Last modified
CVE-2024-2356 is a critical-severity vulnerability rated 9.6/10 on the CVSS scale. 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. EPSS estimates a 0.77% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-2356?
How severe is CVE-2024-2356?
How do I fix CVE-2024-2356?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-23553A cross-site scripting (XSS) vulnerability in the Web Report…5.4
- CVE-2024-23554Cross-Site Request Forgery (CSRF) on Session Token vulnerabi…8.8
- CVE-2024-23556SSL/TLS Renegotiation functionality potentially leading to D…7.5
- CVE-2024-23557HCL Connections contains a user enumeration vulnerability. C…4.3
- CVE-2024-23558HCL DevOps Deploy / HCL Launch does not invalidate session a…6.3
- CVE-2024-23559HCL DevOps Deploy / Launch is generating an obsolete HTTP he…6.1
- CVE-2024-23560HCL DevOps Deploy / HCL Launch could be vulnerable to incomp…4.9
- CVE-2024-23561HCL DevOps Deploy / HCL Launch is vulnerable to sensitive in…4.3
- CVE-2024-23562A security vulnerability in HCL Domino could allow disclosur…7.5
- CVE-2024-23563HCL Connections Docs is vulnerable to a sensitive informatio…4.4
- CVE-2024-23564HCL Aftermarket EPC is affected by Business Logic Vulnerabil…9.1
- CVE-2024-23565HCL Aftermarket EPC is vulnerable to email flooding as the a…5.3
Are you affected by CVE-2024-2356?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
