CVE-2024-6982Code Injection in Lollms

CWE-94Code Injection3 documents3 sources
Severity
8.4HIGHNVD
EPSS
0.1%
top 65.39%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedMar 20

Description

A remote code execution vulnerability exists in the Calculate function of parisneo/lollms version 9.8. The vulnerability arises from the use of Python's `eval()` function to evaluate mathematical expressions within a Python sandbox that disables `__builtins__` and only allows functions from the `math` module. This sandbox can be bypassed by loading the `os` module using the `_frozen_importlib.BuiltinImporter` class, allowing an attacker to execute arbitrary commands on the server. The issue is f

CVSS vector

CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitability: 2.5 | Impact: 5.9

Affected Packages2 packages

CVEListV5parisneo/parisneo_lollmsunspecified9.10
PyPIlollms/lollms< 11.0.0

🔴Vulnerability Details

2
GHSA
LoLLMS Code Injection vulnerability2025-03-20
OSV
LoLLMS Code Injection vulnerability2025-03-20