LOLLMS · CVE-2024-5443 · AI agents & MCP
FIX → 9.5.1
The lollms AI web app's extension-mounting endpoint accepts empty category and folder values, which lets a path traversal reach the root directory. An attacker who can place a config.yaml file in a reachable path gets their __init__.py executed, which means remote code execution on the server.
first public Jun 22, 2024 · 2 sources
Check it with your coding agent
It reads this page and tells you if your code or app is affected.
Teams running a self-hosted lollms server in the affected version range are exposed, especially if the /mount_extension endpoint is reachable and the attacker can write a config.yaml file somewhere the server reads. Installations outside the affected range, or with the endpoint not reachable, are not affected by this description.
Not affected if version-outside-range
Who cares lollms, python, self-hosted
pip show lollms and treat anything from 5.9.0 up to but not including 9.5.1 as exposed./mount_extension endpoint in the deployed lollms instance.Upgrade to 9.5.1
9.5.1 or later.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.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
InfraStack checks it against your stack and answers on your report, with the evidence and the fix.
This page as .md · .json · CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub Advisory Database, CC-BY 4.0 · NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.