PT-2023-27040 · Langchain+2 · Langchain+2

Corgeman

·

Published

2023-01-09

·

Updated

2026-05-05

·

CVE-2023-39631

CVSS v2.0

10

Critical

VectorAV:N/AC:L/Au:N/C:C/I:C/A:C
Name of the Vulnerable Software and Affected Versions LangChain versions 0.0.245 through 0.0.307
Description The issue is related to incorrect code generation control in the numexpr library of the LangChain framework, allowing a remote attacker to execute arbitrary code via the evaluate function. This can lead to exploitation by a remote attacker.
Recommendations For versions 0.0.245 through 0.0.307, update to version 0.0.308 or later, which includes a patch for the numexpr dependency issue. As a temporary workaround, consider disabling the evaluate function in the numexpr library until a patch is applied.

Exploit

Fix

Code Injection

Weakness Enumeration

Related Identifiers

BDU:2025-01410
CVE-2023-39631
GHSA-F73W-4M7G-CH9X
PYSEC-2023-162
PYSEC-2023-163

Affected Products

Langchain
Red Os
Numexpr