CVE Catalog
EnglishPolski(English translation not available - showing Polish)

CVE-2024-6982

High
Published: Translated: NVD NIST

Summary

W wersji 9.8 biblioteki parisneo/lollms występuje podatność na zdalne wykonanie kodu w funkcji Calculate. Problem wynika z użycia funkcji `eval()` Pythona do oceny wyrażeń matematycznych w piaskownicy, która wyłącza `__builtins__` i pozwala jedynie na funkcje z modułu `math`.

Risk Assessment

Atakujący może obejść piaskownicę i załadować moduł `os`, co umożliwia wykonanie dowolnych poleceń na serwerze, stwarzając poważne zagrożenie dla bezpieczeństwa systemu.

Recommendation

Zaleca się aktualizację do wersji 9.10, w której problem został naprawiony, aby zabezpieczyć system przed potencjalnymi atakami.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS