High severity · published Mar 20, 2025
CVE-2024-6982
Remote Code Execution in Calculate Function in parisneo/lollms
8.4
CVSS
0.5%
EPSS
No
On KEV
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 fixed in version 9.10.
CVSS vector
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 40% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PA
parisneo/lollms · parisneo
before 9.10 · source: vendor
Affected product
PA
parisneo/lollms
parisneo
More from parisneo/lollms
9.8
CVE-2026-1114
Improper Access Control via Weak JWT Token in parisneo/lollms
9.8
CVE-2026-0558
Unauthenticated File Upload in parisneo/lollms
9.6
CVE-2026-1115
Stored XSS in parisneo/lollms
8.3
CVE-2026-0562
Insecure Direct Object Reference (IDOR) in parisneo/lollms
8.2
CVE-2026-1117
Improper Access Control in parisneo/lollms