Advisory

PYSEC-2023-18

Also known as: CVE-2023-29374, GHSA-fprp-p869-w6q2

Summary

The record has no summary.

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

Not rated by the source.

Dates

Published
2023-04-05 02:15 UTC
Modified
2026-06-10 17:01 UTC

Affected packages and fixes

langchain

PyPI · All systems

Affected

  • introduced 0, fixed 0.0.132 (ecosystem)

Fixed versions

0.0.132

Fix

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

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: PyPA Advisory Database · CC BY 4.0

Sources & licences