# CVE-2023-39631

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2023-09-01 · Modified: 2024-10-01
- Aliases: GHSA-f73w-4m7g-ch9x, PYSEC-2023-162, PYSEC-2023-163
- Record: https://cvemate.com/vulnerability/CVE-2023-39631 · JSON: https://cvemate.com/vulnerability/CVE-2023-39631/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.6%, percentile 76.627%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (github)

## Affected

- langchain langchain: 0.0.245
- PyPI langchain (PyPI): \< 0.0.308
- PyPI numexpr (PyPI): \< 2.8.5

## References

- <https://github.com/langchain-ai/langchain/issues/8363>
- <https://github.com/pydata/numexpr/issues/442>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-39631>
- <https://github.com/langchain-ai/langchain/pull/11302>
- <https://github.com/pydata/numexpr/commit/4b2d89cf14e75030d27629925b9998e1e91d23c7>
- <https://github.com/langchain-ai/langchain>
- <https://github.com/langchain-ai/langchain/releases/tag/v0.0.308>
- <https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-162.yaml>
- <https://github.com/pypa/advisory-database/tree/main/vulns/numexpr/PYSEC-2023-163.yaml>
- <https://github.com/advisories/GHSA-f73w-4m7g-ch9x>

---

Data as of 2026-12-05T13:31:19.371Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
