Live threats

All CVEs / Langchain

CVE-2023-39659Langchain

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.7%
probability of exploitation in 30 days · percentile 78
Auth required
No
Published
Aug 15, 2023
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-74
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool._run component.

Original NVD text.

What to do

  1. Apply the vendor's security update for Langchain.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI langchain < 0.0.325 0.0.325 pip install "langchain>=0.0.325"
PyPI langchain < 0.0.233 0.0.233 pip install "langchain>=0.0.233"

Per OSV / GitHub Advisories (GHSA-prgp-w7vf-ch62, PYSEC-2023-147). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
langchainlangchain≤ 0.0.232

Official sources

References

Links published by the sources. Open them with care.