Vulnerability · Published Mar 20, 2025 · Assigned by @huntr_ai

CVE-2024-6982Remote Code Execution in Calculate Function in parisneo/lollms

High 8.4

In plain English

A high-severity code injection in parisneo/lollms from parisneo. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)8.4High
Exploit odds (30 days)0.5%top 59.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIlollms11.0.0GHSA-jccx-m9v4-9hwh
PyPIlollms11.0.0PYSEC-2026-1591

Affected products (as reported)

VendorProductVersions
parisneo parisneo/lollms unspecified – before 9.10

Weakness: CWE-94 · Vector: CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References