{"vuln_id":"CVE-2024-4320","aliases":[],"description":"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.","published_at":"2024-06-06T19:16:02.453000Z","modified_at":"2026-06-17T08:01:40.013000Z","first_seen_at":"2026-11-21T19:15:20.313300Z","severity":"critical","severity_source":"nvd","cvss_score":9.8,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-29","CWE-22"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":0.34354,"epss_percentile":0.98435,"nvd_status":"Modified","enriched_at":"2026-11-22T13:35:19.677260Z","links":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-4320"},"matched_alias":null,"items":[{"id":2560,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-mvrm-fh8q-6wr2 / CVE-2024-5443: Remote Code Execution via path traversal bypass in lollms","summary":"Remote Code Execution via path traversal bypass in lollms\n\nCVE-2024-4320 describes a vulnerability in the parisneo/lollms software, specifically within the `ExtensionBuilder().build_extension()` function. The vulnerability arises from the `/mount_extension` endpoint, where a path traversal issue allows attackers to navigate beyond the intended directory structure. This is facilitated by the `data.category` and `data.folder` parameters accepting empty strings (`\"\"`), which, due to inadequate input sanitization, can lead to the construction of a `package_path` that points to the root directory. Consequently, if an attacker can create a `config.yaml` file in a controllable path, this path can be appended to the `extensions` list and trigger the execution of `__init__.py` in the current directory, leading to remote code execution. The vulnerability affects versions from 5.9.0, and has been addressed in version 9.5.1.\n\nAffected packages: pip:lollms\nPatched: lollms 9.5.1","url":"https://github.com/advisories/GHSA-mvrm-fh8q-6wr2","published_at":"2024-06-22T18:30:41Z","updated_at":"2026-11-16T15:38:33Z","fetched_at":"2026-11-21T19:15:18.416933Z","severity":"critical","cvss_score":9.8,"epss":0.34354,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"lollms","vuln_id":"CVE-2024-5443","vuln_ids":["CVE-2024-4320","CVE-2024-5443","GHSA-MVRM-FH8Q-6WR2"],"tags":["ghsa","pip","CWE-29"],"cluster_id":2567,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2560","html":"https://vulnwatch.ve1ve2.com/item/2560"}}]}