langchain-experimental vulnerable to Arbitrary Code Execution
CVE-2024-21513 · GHSA-cgcg-p68q-3w7v · published 2024-07-15 · updated 2024-11-18
- Severity
- Critical
- CVSS score
- 8.5
- Chance of exploitation (EPSS)
- 1.9%
- Fixed in
- 0.0.21
- Exploitation No known exploitation
- Automatable No
- Technical impact Total
- CISA SSVC
Versions of the package langchain-experimental from 0.0.15 and before 0.0.21 are vulnerable to Arbitrary Code Execution when retrieving values from the database, the code will attempt to call 'eval' on all values. An attacker can exploit this vulnerability and execute arbitrary python code if they can control the input prompt and the server is configured with VectorSQLDatabaseChain.
Upgrade langchain-experimental to 0.0.21 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| langchain-experimental | PyPI | >= 0, < 0.0.21 | 0.0.21 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalLangChain Experimental Eval Injection vulnerabilitylangchain-experimental
- CriticalLangChain Experimental vulnerable to arbitrary code executionlangchain-experimental
- Criticallangchain_experimental vulnerable to arbitrary code execution via PALChain in the python exec methodlangchain-experimental
- Highlangchain_experimental Code Execution via Python REPL accesslangchain-experimental
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.