8.4
CWE
94
Advisory Published
Advisory Published
Updated

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

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

Credit: security@huntr.dev

Affected SoftwareAffected VersionHow to fix
pip/lollms<11.0.0
11.0.0
Parisneo Lollms Web UI<9.10

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-6982?

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

  • How do I fix CVE-2024-6982?

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

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

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

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

  • 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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203