Описание
Langchain vulnerable to arbitrary code execution via the evaluate function in the numexpr library
An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library.
Patches: Released in v.0.0.308. numexpr dependency is optional for langchain.
Ссылки
- https://nvd.nist.gov/vuln/detail/CVE-2023-39631
- https://github.com/langchain-ai/langchain/issues/8363
- https://github.com/pydata/numexpr/issues/442
- https://github.com/langchain-ai/langchain/pull/11302
- https://github.com/pydata/numexpr/commit/4b2d89cf14e75030d27629925b9998e1e91d23c7
- https://github.com/langchain-ai/langchain/releases/tag/v0.0.308
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-162.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/numexpr/PYSEC-2023-163.yaml
Пакеты
Наименование
langchain
pip
Затронутые версииВерсия исправления
< 0.0.308
0.0.308
Наименование
numexpr
pip
Затронутые версииВерсия исправления
< 2.8.5
2.8.5
Связанные уязвимости
CVSS3: 9.8
nvd
почти 2 года назад
An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library.
CVSS3: 9.8
fstec
больше 2 лет назад
Уязвимость библиотеки numexpr фреймворка для создания приложений на основе комбинирования языковах моделей LangChain, позволяющая нарушителю выполнить произвольный код