Remote Code Execution via Path Traversal in parisneo/lollms
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.0 · CNA. Fix status from CNA and GitHub.
Summary
CVE-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 up to 5.9.0, and has been addressed in version 9.8.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| parisneo | parisneo/lollms | before 9.8 | 9.8 | Patch available | CNA |
| — | lollms (PyPI) | 5.9.0 to before 9.5.1 | 9.5.1 | Patch available | GHSA-mvrm-fh8q-6wr2 |
- parisneo/lollms Vendorparisneo Affected before 9.8 Fixed in 9.8 Patch available CNA
- lollms (PyPI) Vendor— Affected 5.9.0 to before 9.5.1 Fixed in 9.5.1 Patch available GHSA-mvrm-fh8q-6wr2
Remediation
- Fix · CNA parisneo/lollms (parisneo) Fixed in 9.8
- Fix · GHSA-mvrm-fh8q-6wr2 lollms (PyPI) Fixed in 9.5.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2024-5443
- 2026-10-03 Alias added: GHSA-mvrm-fh8q-6wr2
References
More parisneo vulnerabilities
- TI-2026-00842 Improper Access Control via Weak JWT Token in parisneo/lollms CVSS 3.0CRITICAL 9.8
- TI-2024-04029 Remote Code Execution via `/apply_settings` and `/execute_code` in parisneo/lollms-webui CVSS 3.0CRITICAL 9.8
- TI-2024-04023 Remote Code Execution due to LFI in '/install_extension' in parisneo/lollms-webui CVSS 3.1CRITICAL 9.8
- TI-2024-03798 Arbitrary Code Execution in parisneo/lollms CVSS 3.0CRITICAL 9.8
- TI-2024-02196 Arbitrary Upload & Read via Path Traversal in parisneo/lollms-webui CVSS 3.0CRITICAL 9.6
- TI-2024-02195 Path Traversal leading to Remote Code Execution in parisneo/lollms-webui CVSS 3.1CRITICAL 9.8
Sources
- CVE-2024-5443 · CVE Program
- CVE-2024-5443 · NVD
- FIRST EPSS
- GHSA-mvrm-fh8q-6wr2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences