CVE-2023-29374: Langchain

Critical severity, CVSS 9.8. EPSS: 39.7% chance of exploitation in the next 30 days.

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

Affected products

  • Langchain Langchain: up to and including 0.0.131

Published 2023-04-05. Last modified 2026-06-17.