Vulnerabilities / CVE-2023-39631

critical

CVE-2023-39631

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

Published Modified CWE 94
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA.

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 and fixed versions

SourcePackageFixed in
pip::GitHub Security Advisory piplangchain, numexpr0.0.308 and 1 more
seal pip::Seal Security Databaselangchain, seal-langchain0.0.279+sp999, 0.0.281+sp999, 0.0.287+sp999, 0.0.288+sp999, 0.0.289+sp999, 0.0.290+sp999, 0.0.297+sp999, 0.0.298+sp999, 0.0.299+sp999, 0.0.300+sp999, 0.0.301+sp999, 0.0.302+sp999, 0.0.303+sp999
Show all 4 entries from 2 sources
SourcePackageFixed in
pip::GitHub Security Advisory piplangchain0.0.308
pip::GitHub Security Advisory pipnumexpr2.8.5
seal pip::Seal Security Databaselangchain0.0.279+sp999, 0.0.281+sp999, 0.0.287+sp999, 0.0.288+sp999, 0.0.289+sp999, 0.0.290+sp999, 0.0.297+sp999, 0.0.298+sp999, 0.0.299+sp999, 0.0.300+sp999, 0.0.301+sp999, 0.0.302+sp999, 0.0.303+sp999
seal pip::Seal Security Databaseseal-langchain0.0.279+sp999, 0.0.281+sp999, 0.0.287+sp999, 0.0.288+sp999, 0.0.289+sp999, 0.0.290+sp999, 0.0.297+sp999, 0.0.298+sp999, 0.0.299+sp999, 0.0.300+sp999, 0.0.301+sp999, 0.0.302+sp999, 0.0.303+sp999

References

All 9 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.