LangChainPublished 1 Sept 2023NVD status: Modified

CVE-2023-39631

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.

ComponentLangChain
Severitycritical (CVSS 9.8)
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published (NVD)2023-09-01
Last modified2026-06-17
Affected versions
< 0.0.308
from the GitHub-reviewed advisory GHSA-f73w-4m7g-ch9x
Fixed in0.0.308
WeaknessCWE-94
CISA KEVnot listed

Versions, checked against NVD

NVD's analysis reads = 0.0.245. The ranges above come from the GitHub-reviewed advisory GHSA-f73w-4m7g-ch9x. The page and the scanner follow it: no more trusted source, and no two sources together, say otherwise (see the methodology).

NVD 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.

What to do

  • Upgrade LangChain to 0.0.308 or later.
  • Do not expose the component's API or UI to the internet without authentication in front of it.

Sources