GitHub Advisoryadvisory · PyPI
GHSA-fprp-p869-w6q2 LangChain vulnerable to code injection
CRITICAL
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
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-29374 advisory
- https://github.com/hwchase17/langchain/issues/1026 web
- https://github.com/hwchase17/langchain/issues/814 web
- https://github.com/hwchase17/langchain/pull/1119 web
- https://github.com/langchain-ai/langchain package
- https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-18.yaml web
- https://twitter.com/rharang/status/1641899743608463365/photo/1 web