Directory Traversal Affecting lollms package, versions [,9.5.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LOLLMS-7547134
  • published21 Jul 2024
  • disclosed20 Jul 2024
  • creditHaiNguyen

Introduced: 20 Jul 2024

CVE-2024-6281  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade lollms to version 9.5.1 or higher.

Overview

lollms is a python library for AI personality definition

Affected versions of this package are vulnerable to Directory Traversal through the apply_settings function. An attacker can manipulate the path and potentially write to important system folders by exploiting the inadequate security of the sanitize_path function, particularly the discussion_db_name parameter.

References

CVSS Scores

version 4.0
version 3.1