CVE-2024-9920: Unrestricted File Upload and Execution in parisneo/lollms-webui
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 '/openfile' 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-9920?
CVE-2024-9920 is categorized as a high severity vulnerability due to its potential for code execution through file uploads.
How do I fix CVE-2024-9920?
To mitigate CVE-2024-9920, restrict file upload capabilities to only safe file types and implement robust validation mechanisms.
What software versions are affected by CVE-2024-9920?
CVE-2024-9920 affects version v12 of parisneo/lollms-webui.
How can an attacker exploit CVE-2024-9920?
An attacker can exploit CVE-2024-9920 by uploading malicious files through the 'Send file to AL' function.
What types of files can be uploaded that are vulnerable in CVE-2024-9920?
CVE-2024-9920 is vulnerable to uploading various dangerous file types, including .py, .sh, and .bat.