GitHub Advisoryadvisory · PyPI

GHSA-fprp-p869-w6q2 LangChain vulnerable to code injection

CRITICAL Published 2023-04-05 Modified 2025-02-12 Official page ↗
Aliases
CVE-2023-29374
Ecosystem
PyPI
Packages
langchain
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-74, CWE-94
Reviewed
2023-04-05

Affected packages

• PyPI langchain: <= 0.0.131 (no fix yet)

Description

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

Related

Alias · CVE (1)

  • CVE-2023-29374 In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec… vulnerability

Weakness · CWE (2)

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component weakness
  • CWE-94 Improper Control of Generation of Code weakness

References