Skip to content
LangChainGHSA-f73w-4m7g-ch9x

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

Critical9.8CVE-2023-39631 · Published Sep 1, 2023 · updated Feb 20, 2025

GitHub advisory

Affected versions

PackageAffectedFixed in
langchain
PyPI
< 0.0.3080.0.308
Details and references

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.

CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Severity from
GitHub (reviewed advisory)
Weakness
CWE-94
Also known as
CVE-2023-39631, PYSEC-2023-162, PYSEC-2023-163

More LangChain advisories

All LangChain
DateAdvisory
Aug 222023langchain vulnerable to arbitrary code execution
CVE-2023-36281Critical9.8fixed in 0.0.312
Aug 152023LangChain vulnerable to arbitrary code execution
CVE-2023-38896Critical9.8fixed in 0.0.236
Aug 152023LangChain vulnerable to arbitrary code execution
CVE-2023-38860Critical9.8fixed in 0.0.247
Aug 152023LangChain vulnerable to arbitrary code execution
CVE-2023-39659Critical9.8fixed in 0.0.325
Aug 52023langchain Code Injection vulnerability
CVE-2023-36095Critical9.8fixed in 0.0.236
Oct 92023langchain_experimental vulnerable to arbitrary code execution via PALChain in the python exec method
CVE-2023-44467Critical9.8no fix yet

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.