NetSight
critical9.8

CVE-2023-39631

Langchain vulnerable to arbitrary code execution via the evaluate function in the numexpr library

Impact

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.

Affected packages

EcosystemPackageAffectedFixed in
piplangchain< 0.0.3080.0.308
pipnumexpr< 2.8.52.8.5

Affected products

VendorProductAffected versions
LangchainLangchain
Version 0.0.245

Weakness classification

References