Vulnerability · Published Sep 1, 2023 · Assigned by mitre
CVE-2023-39631
Critical 9.8
In plain English
A critical-severity security flaw in the langchain package (PyPI). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.6% (higher than 76% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)1.6%top 24.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | langchain | 0.0.308 | GHSA-f73w-4m7g-ch9x |
| PyPI | langchain | 0.0.308 | PYSEC-2023-162 |
| PyPI | numexpr | 2.8.5 | GHSA-f73w-4m7g-ch9x |
| PyPI | numexpr | 2.8.5 | PYSEC-2023-163 |