Advisory

GHSA-fprp-p869-w6q2

Also known as: CVE-2023-29374, PYSEC-2023-18

Summary

LangChain vulnerable to code injection

Details

In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec() method.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2023-04-05 03:30 UTC
Modified
2025-02-12 18:43 UTC

Affected packages and fixes

langchain

PyPI · All systems

Affected

  • introduced 0, last affected 0.0.131 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

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