Advisory

GHSA-gwqq-6vq7-5j86

Also known as: CVE-2023-36095, PYSEC-2023-138

Summary

langchain Code Injection vulnerability

Details

An issue in Harrison Chase langchain allows an attacker to execute arbitrary code via the PALChain,from_math_prompt(llm).run in the python exec method.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2023-08-05 03:30 UTC
Modified
2024-09-27 18:01 UTC

Affected packages and fixes

langchain

PyPI · All systems

Affected

  • introduced 0, fixed 0.0.236 (ecosystem)

Fixed versions

0.0.236

Fix

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

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