We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2024-6982

Remote Code Execution in Calculate Function in parisneo/lollms



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.

Reserved 2024-07-22 | Published 2025-03-20 | Updated 2025-03-20 | Assigner @huntr_ai


HIGH: 8.4CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Problem types

CWE-94 Improper Control of Generation of Code

Product status

Any version before 9.10
affected

References

huntr.com/bounties/4f8e73ac-aaaf-4d5c-a6dd-58215b5a7fea

github.com/...ommit/30e7eaba2ccfb751a81e7cb29fdef2ae8ffa6832

cve.org (CVE-2024-6982)

nvd.nist.gov (CVE-2024-6982)

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2024-6982

Support options

Helpdesk Chat, Email, Knowledgebase