{"cve":"CVE-2023-39631","nvd":{"published":"2023-09-01T16:15:08.370","modified":"2026-06-17T06:12:38.260","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-94"],"references":["https://github.com/langchain-ai/langchain/issues/8363","https://github.com/pydata/numexpr/issues/442","https://github.com/langchain-ai/langchain/issues/8363","https://github.com/pydata/numexpr/issues/442"],"products":["langchain:langchain"],"source":"nvd","synced_at":"2026-10-19T21:39:14.809778102+00:00"},"epss":{"cve":"CVE-2023-39631","score":0.016,"percentile":0.7579,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-f73w-4m7g-ch9x","url":"https://osv.dev/vulnerability/GHSA-f73w-4m7g-ch9x","summary":"Langchain vulnerable to arbitrary code execution via the evaluate function in the numexpr library","modified":"2025-02-20T23:01:00.348246Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.0.308"],"fixed":["0.0.308"]},{"ecosystem":"PyPI","name":"numexpr","purl":"pkg:pypi/numexpr","ranges":["<2.8.5"],"fixed":["2.8.5"]}]},{"id":"PYSEC-2023-162","url":"https://osv.dev/vulnerability/PYSEC-2023-162","summary":"","modified":"2023-11-08T04:13:15.129905Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.0.308"],"fixed":["0.0.308"]}]},{"id":"PYSEC-2023-163","url":"https://osv.dev/vulnerability/PYSEC-2023-163","summary":"","modified":"2026-06-10T17:02:26.302359325Z","packages":[{"ecosystem":"PyPI","name":"numexpr","purl":"pkg:pypi/numexpr","ranges":["<2.8.5"],"fixed":["2.8.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}