Advisory

GHSA-prgp-w7vf-ch62

Also known as: CVE-2023-39659, PYSEC-2023-147

Summary

LangChain vulnerable to arbitrary code execution

Details

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

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2023-08-15 18:31 UTC
Modified
2024-09-27 21:33 UTC

Affected packages and fixes

langchain

PyPI · All systems

Affected

  • introduced 0, fixed 0.0.325 (ecosystem)

Fixed versions

0.0.325

Fix

  • Fixed version 0.0.325
    pip install --upgrade langchain==0.0.325

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences