LangChain PALChain: Prompt Injection to RCE (CVE-2023-44467)
Only apps that feed untrusted text into PALChain (or similar LLM-to-Python chains) are at risk, but for them it is full code execution, and blocklist fixes kept getting bypassed, so remove the pattern rather than trust the patch.
Must act: Teams whose Python apps import langchain_experimental and use PALChain or other chains that execute model-generated code on user-influenced input.
Can relax: LangChain users who never install langchain-experimental or never use its code-executing chains, and users of other LLM frameworks without eval-style features.
- Find usage: grep -rn 'PALChain\|langchain_experimental' your code and run pip show langchain-experimental
- Upgrade langchain-experimental to the latest release (0.0.52 at minimum)
- Stop passing untrusted or retrieved text into PALChain or any chain that executes LLM-generated code