VulnWatch by ve1ve2
critical 9.8 EPSS 34.4%

GHSA-mvrm-fh8q-6wr2 / CVE-2024-5443: Remote Code Execution via path traversal bypass in lollms

Source:
GitHub Security Advisories
Published:
Fetched:
Updated:
Affects:
lollms

https://github.com/advisories/GHSA-mvrm-fh8q-6wr2 ↗

ghsapipCWE-29

Remote Code Execution via path traversal bypass in lollms 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 from 5.9.0, and has been addressed in version 9.5.1. Affected packages: pip:lollms Patched: lollms 9.5.1

Linked vulnerabilities (3)

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Remote Code Execution via path traversal bypass in lollms

CWE: CWE-29Aliases: CVE-2024-5443, CVE-2024-4320
CVE-2024-5443 critical 9.8 EPSS 1.16% (p68) NVDCVE.orgGHSA
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Remote Code Execution via path traversal bypass in lollms

CWE: CWE-29Aliases: GHSA-mvrm-fh8q-6wr2, CVE-2024-4320
CVE-2024-4320 critical 9.8 EPSS 34.4% (p98) NVDCVE.org
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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...

CWE: CWE-29, CWE-22NVD: Modified