ADVISORIES

GitHub Advisory Database

GHSA-f73w-4m7g-ch9x

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

Details

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

EcosystemPackageAffected versions
PyPIlangchain
All versions before 0.0.308 (fixed in 0.0.308)
PyPInumexpr
All versions before 2.8.5 (fixed in 2.8.5)

References