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

- Severity: High 8.4 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-02)
- Published: 2025-03-20T10:10:31.983Z
- Modified: 2026-07-07T17:56:33.515Z
- Also known as: GHSA-jccx-m9v4-9hwh, PYSEC-2026-1591
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: @huntr_ai

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

(As written by CVE List.)

## Affected

- parisneo parisneo/lollms: from unspecified before 9.10
- lollms (PyPI): before 11.0.0

## Every score

- @huntr_ai: CVSS:3.0 8.4 High `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.0 8.4 High `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.0 8.4 High `CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://huntr.com/bounties/4f8e73ac-aaaf-4d5c-a6dd-58215b5a7fea> (web)
- <https://github.com/parisneo/lollms/commit/30e7eaba2ccfb751a81e7cb29fdef2ae8ffa6832> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-6982> (advisory)
- <https://github.com/ParisNeo/lollms> (package)
- <https://pypi.org/project/lollms> (package)
- <https://github.com/advisories/GHSA-jccx-m9v4-9hwh> (advisory)

## Sources

- CVE List: [CVE-2024-6982](https://www.cve.org/CVERecord?id=CVE-2024-6982), CVE Terms of Use, modified 2025-03-20
- GitHub Advisory Database: [GHSA-jccx-m9v4-9hwh](https://github.com/advisories/GHSA-jccx-m9v4-9hwh), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-6982](https://nvd.nist.gov/vuln/detail/CVE-2024-6982), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1591](https://osv.dev/vulnerability/PYSEC-2026-1591), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-6982 · Whole record: https://cve.day/CVE-2024-6982.json · Rebuilt by cve.day 2026-11-25T22:58:52.377Z
