All reports
Critical

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

Affected versions

Version ranges need review.

Affected versions
Unknown
Fixed version
0.0.308
Affected versions
< 0.0.308
Fixed version
0.0.308
Affected versions
<2.8.5 || =1.1.1 || =1.2 || =1.3 || =1.3.1 || =1.4 || =1.4.1 || =1.4.2 || =2.0 || =2.0.1 || =2.1 || =2.2 || =2.2.1 || =2.2.2 || =2.3 || =2.3-rc1 || =2.3.1 || =2.4 || =2.4-rc1 || =2.4-rc2 || =2.4.1 || =2.4.2 || =2.4.3 || =2.4.4 || =2.4.5 || =2.4.6 || =2.5 || =2.5.1 || =2.5.2 || =2.6.0 || =2.6.1 || =2.6.2 || =2.6.3 || =2.6.4 || =2.6.5 || =2.6.6 || =2.6.6.dev0 || =2.6.7 || =2.6.8 || =2.6.9 || =2.7.0 || =2.7.1 || =2.7.2 || =2.7.3 || =2.8.0 || =2.8.1 || =2.8.3 || =2.8.4
Fixed version
2.8.5
Affected versions
< 2.8.5
Fixed version
2.8.5

Exploitation

CVE-2023-39631

Probability of exploitation in the next 30 days: 1.60%

FIRST EPSS · 2026-11-24

Description

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.

Links

Credits

  • eyurtsev