CVE-2024-6982 – lollms
Package
Manager: pip
Name: lollms
Vulnerable Version: >=0 <11.0.0
Severity
Level: High
CVSS v3.1: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
EPSS: 0.00103 pctl0.28803
Details
LoLLMS Code Injection vulnerability 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 fixed in version 9.10.
Metadata
Created: 2025-03-20T12:32:45Z
Modified: 2025-03-21T22:23:35Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-jccx-m9v4-9hwh/GHSA-jccx-m9v4-9hwh.json
CWE IDs: ["CWE-94"]
Alternative ID: GHSA-jccx-m9v4-9hwh
Finding: F422
Auto approve: 1