{"id":"CVE-2023-39631","aliases":["GHSA-f73w-4m7g-ch9x","PYSEC-2023-162","PYSEC-2023-163"],"url":"https://o3.security/vulnerability/CVE-2023-39631","summary":"Langchain vulnerable to arbitrary code execution via the evaluate function in the numexpr library","details":"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.","published":"2023-09-01T00:00:00Z","modified":"2026-08-12T03:51:48.595598933Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":{"score":0.01333,"percentile":0.69125,"asOf":"2026-08-30"},"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"PyPI","name":"langchain","fixedVersion":"0.0.308"},{"ecosystem":"PyPI","name":"numexpr","fixedVersion":"2.8.5"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/39xxx/CVE-2023-39631.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39631"},{"type":"REPORT","url":"https://github.com/langchain-ai/langchain/issues/8363"},{"type":"REPORT","url":"https://github.com/pydata/numexpr/issues/442"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:48.595598933Z"}}