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

Published Mar 20, 2025
·
Updated

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 frozenimportlib.BuiltinImporter class, allowing an attacker to execute arbitrary commands on the server. The issue is fixed in version 9.10.

Affected Software

2 affected componentsFixes available
pip/lollms<11.0.0
11.0.0
parisneo lollms<9.10

Event History

Mar 20, 2025
CVE Published
via MITRE·10:10 AM
Data Sourced
via MITRE·10:10 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:15 AM
DescriptionSeverityWeakness
Advisory Published
via GitHub·12:32 PM

Frequently Asked Questions

1

What is the severity of CVE-2024-6982?

CVE-2024-6982 is rated as a high severity remote code execution vulnerability.

2

How do I fix CVE-2024-6982?

To fix CVE-2024-6982, upgrade to lollms version 11.0.0 or later.

3

What causes the CVE-2024-6982 vulnerability?

CVE-2024-6982 is caused by the insecure use of Python's eval() function in the Calculate function of lollms.

4

Which versions of lollms are affected by CVE-2024-6982?

CVE-2024-6982 affects lollms versions up to 9.10.

5

Is there a workaround for CVE-2024-6982?

There are no known workarounds for CVE-2024-6982; updating to the patched version is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203