CVE-2024-5443CWE-29

Remote Code Execution via Path Traversal in parisneo/lollms

Critical · published June 22, 2024

CVSS v3.0
9.8
EPSS
1%
Percentile
67.0
In the wild
Unconfirmed
What it is

🚨 A sneaky path traversal bug in the `ExtensionBuilder()` function can let attackers stroll into your system like they own the place! 🔥 Think of it as a delivery driver who, upon seeing a slight error in the address, decides to just wander past the front door right into your living room—completely bypassing the front gate! If exploited, attackers could craft a `config.yaml` file that allows them to execute arbitrary code on your server, essentially gaining full control over it. This could lead to data theft, system damage, or worse, a malicious takeover of your entire application!

Put simply

Think of it as a delivery driver who, upon seeing a slight error in the address, decides to just wander past the front door right into your living room—completely bypassing the front gate! This vulnerability stems from the `/mount_extension` endpoint where inadequate input sanitization allows attackers to manipulate the `package_path`, potentially pointing to the root directory and executing unwanted code through a crafted `__init__.py` file.

What to do

If exploited, attackers could craft a `config.yaml` file that allows them to execute arbitrary code on your server, essentially gaining full control over it. This could lead to data theft, system damage, or worse, a malicious takeover of your entire application! To secure your system, immediately upgrade to version 9.8 or later of the parisneo/lollms software. Additionally, implement strict input validation to prevent empty strings from being accepted in the `data.category` and `data.folder` parameters. 🛡️ You're on the right track! Fix this now, and your security hero status is fully activated! 💪✨

The record
Technical detail
CVSS v3.0
9.8 · CRITICAL
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01164 · 67.0th percentile
Weakness
CWE-29 · Path Traversal: '\..\filename'
Published
2024-06-22T16:12Z
EPSS history
Timeline
  • 22 JUN 16:12Z
    Remote Code Execution via Path Traversal in parisneo/lollms
    cvelistv5