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
Affected versions
| Package | Affected | Fixed in |
|---|---|---|
| langchain PyPI | < 0.0.308 | 0.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
- nvd.nist.gov/vuln/detail/CVE-2023-39631
- github.com/langchain-ai/langchain/issues/8363
- github.com/pydata/numexpr/issues/442
- github.com/langchain-ai/langchain/pull/11302
- github.com/pydata/numexpr/commit/4b2d89cf14e75030d27629925b9998e1e91d23c7
- github.com/langchain-ai/langchain
- github.com/langchain-ai/langchain/releases/tag/v0.0.308
- github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-162.yaml
- github.com/pypa/advisory-database/tree/main/vulns/numexpr/PYSEC-2023-163.yaml
More LangChain advisories
All LangChain| Date | Advisory | Severity | Fixed in |
|---|---|---|---|
| Aug 222023 | langchain vulnerable to arbitrary code execution CVE-2023-36281Critical9.8fixed in 0.0.312 | Critical9.8 | 0.0.312 |
| Aug 152023 | LangChain vulnerable to arbitrary code execution CVE-2023-38896Critical9.8fixed in 0.0.236 | Critical9.8 | 0.0.236 |
| Aug 152023 | LangChain vulnerable to arbitrary code execution CVE-2023-38860Critical9.8fixed in 0.0.247 | Critical9.8 | 0.0.247 |
| Aug 152023 | LangChain vulnerable to arbitrary code execution CVE-2023-39659Critical9.8fixed in 0.0.325 | Critical9.8 | 0.0.325 |
| Aug 52023 | langchain Code Injection vulnerability CVE-2023-36095Critical9.8fixed in 0.0.236 | Critical9.8 | 0.0.236 |
| Oct 92023 | langchain_experimental vulnerable to arbitrary code execution via PALChain in the python exec method CVE-2023-44467Critical9.8no fix yet | Critical9.8 | No fix yet |