Skip to main content
← All vulnerabilities
CVE-2024-6982PYSEC-2026-1591GHSA-JCCX-M9V4-9HWH

Remote Code Execution in Calculate Function in parisneo/lollms

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 9.10, 11.0.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • parisneo parisneo/lollms

    fixed in 9.10

  • lollmsPyPI

    fixed in 11.0.0

References 2

huntr.com

GitHub · parisneo/lollms