{"id":"CVE-2024-6982","published":"2025-03-20T10:10:31Z","modified":"2025-03-20T18:20:14Z","title":"Remote Code Execution in Calculate Function in parisneo/lollms","vendor":"parisneo","product":"parisneo/lollms","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0046,"percentile":0.40798,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://huntr.com/bounties/4f8e73ac-aaaf-4d5c-a6dd-58215b5a7fea","tags":[]},{"url":"https://github.com/parisneo/lollms/commit/30e7eaba2ccfb751a81e7cb29fdef2ae8ffa6832","tags":[]}],"priority":{"score":14.0,"factors":[{"name":"EPSS percentile","points":8.16},{"name":"CVSS severity","points":5.88}]},"vendorSlug":"parisneo","affectedVersions":[{"vendor":"parisneo","product":"parisneo/lollms","versions":[">= unspecified, < 9.10"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-03-20T17:49:52.721851Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"lollms","vulnerableRanges":["<11.0.0"],"patched":["11.0.0"],"from":["GHSA-jccx-m9v4-9hwh","PYSEC-2026-1591"],"provenance":"source"}],"summary":{"text":"The Calculate function in parisneo/lollms (version 9.8) passes user input to Python's eval() inside a sandbox that disables builtins and only exposes the math module, and that sandbox can be escaped. An attacker who can reach the function can bypass the sandbox by loading the os module through _frozen_importlib.BuiltinImporter and run arbitrary commands on the server, with no authentication or user interaction required, though the attacker needs local access to the system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:35:47Z"},"euvd":{"id":"EUVD-2025-6967","exploited":false,"provenance":"source"}}