---
id: "CVE-2024-5443"
page: "https://infrastack.ai/live/CVE-2024-5443"
kind: "vulnerability"
aliases: ["CVE-2024-5443", "GHSA-mvrm-fh8q-6wr2"]
title: "Remote Code Execution via path traversal bypass in lollms"
severity: "critical"
cvss: 9.8
epss: 0.01164
exploited: false
status: "open"
category: "ai-tooling"
products: [{"name": "lollms", "fixed": ["9.5.1"], "affected": ">= 5.9.0, < 9.5.1", "ecosystem": "pypi"}]
ecosystems: ["pypi"]
tags: ["ai-tooling", "cwe-29", "lollms", "python", "self-hosted"]
not_affected_if: ["version-outside-range"]
published_at: "2024-06-22T17:15:34+00:00"
first_seen_at: "2026-11-16T15:42:57+00:00"
updated_at: "2026-11-16T16:08:50+00:00"
sources: [{"source": "ghsa", "url": "https://github.com/advisories/GHSA-mvrm-fh8q-6wr2", "first_seen_at": "2026-11-16T15:42:57+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-5443", "first_seen_at": "2026-11-16T16:08:50+00:00"}]
exploit_sources: [{"type": "epss", "score": 0.01164, "url": "https://api.first.org/data/v1/epss?cve=CVE-2024-5443"}]
---

# Remote Code Execution via path traversal bypass in lollms

Link for people: https://infrastack.ai/live/CVE-2024-5443 (this .md is for agents)

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.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- pypi:lollms affected >= 5.9.0, < 9.5.1 fixed 9.5.1

## How to check

- Check the installed lollms version with `pip show lollms` and treat anything from `5.9.0` up to but not including `9.5.1` as exposed.
- Look for the `/mount_extension` endpoint in the deployed lollms instance.

## Fix

- Upgrade lollms to `9.5.1` or later.

## Timeline

- 2026-11-16T15:42:57+00:00 ghsa https://github.com/advisories/GHSA-mvrm-fh8q-6wr2
- 2026-11-16T16:08:50+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2024-5443

## Documents

- [fix] Patch: github.com https://github.com/parisneo/lollms/commit/2d0c4e76be93195836ecd0948027e791b8a2626f

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
