{"id":"CVE-2024-6982","aliases":["CVE-2024-6982","GHSA-jccx-m9v4-9hwh","PYSEC-2026-1591"],"related":[],"kind":"vulnerability","state":"published","title":"Remote Code Execution in Calculate Function in parisneo/lollms","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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"Existe una vulnerabilidad de ejecución remota de código en la función Calculate de parisneo/lollms versión 9.8. Esta vulnerabilidad surge del uso de la función `eval()` de Python para evaluar expresiones matemáticas dentro de un entorno de pruebas de Python que deshabilita `__builtins__` y solo permite funciones del módulo `math`. Este entorno de pruebas puede evitarse cargando el módulo `os` mediante la clase `_frozen_importlib.BuiltinImporter`, lo que permite a un atacante ejecutar comandos arbitrarios en el servidor. El problema se solucionó en la versión 9.10.","source":"nvd"}],"published":"2025-03-20T10:10:31.983Z","modified":"2026-07-07T17:56:33.515Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.4,"rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","fixed":"9.10","status":"affected"}],"vendor":"parisneo","product":"parisneo/lollms","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"11.0.0"}],"ecosystem":"PyPI","package":"lollms","purl":"pkg:pypi/lollms","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"11.0.0"}],"ecosystem":"PyPI","package":"lollms","purl":"pkg:pypi/lollms","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/4f8e73ac-aaaf-4d5c-a6dd-58215b5a7fea","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/parisneo/lollms/commit/30e7eaba2ccfb751a81e7cb29fdef2ae8ffa6832","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6982","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/ParisNeo/lollms","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/lollms","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-jccx-m9v4-9hwh","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2025-03-20T17:49:52.721Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-6982","url":"https://www.cve.org/CVERecord?id=CVE-2024-6982","licence":"CVE Terms of Use","modified":"2025-03-20T18:20:14.175Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jccx-m9v4-9hwh","url":"https://github.com/advisories/GHSA-jccx-m9v4-9hwh","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:33.515Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-6982","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6982","licence":"Public domain","modified":"2026-06-17T08:19:07.437Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1591","url":"https://osv.dev/vulnerability/PYSEC-2026-1591","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:56.172Z"}],"updatedAt":"2026-11-25T22:58:52.377Z","epss":{"score":0.0046,"percentile":0.416,"date":"2026-12-02T12:00:21.000Z"}}