CVE-2024-6982: LoLLMS Code Injection vulnerability
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.
Published Mar 20, 2025 · Updated Mar 21, 2025
Affected packages
lollms
- Ecosystem
- PyPI
- Affected
- < 11.0.0
- Fixed in
- 11.0.0
- Check
pip show lollms
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-1115
parisneo/lollms vulnerable to stored XSS in the social feature
critical9.6Apr 10, 2026CVE-2026-1163
parisneo/lollms has an insufficient session expiration vulnerability
medium4.1No fixApr 8, 2026CVE-2026-1114
LoLLMs is vulnerable to Improper Access Control through weak secret key
critical9.8Apr 7, 2026CVE-2026-1117
Lollms has an Improper Access Control vulnerability
high8.2Feb 2, 2026CVE-2025-6386
Lord of Large Language Models vulnerable to Observable Discrepancy attack via authenticate_user function
high7.5No fixJul 7, 2025CVE-2024-6581
Lollms vulnerable to Cross-site Scripting
medium6.5No fixOct 29, 2024
